DataSourceWindowsEventArgs

data class DataSourceWindowsEventArgs(val eventLogName: Output<String>? = null, val eventTypes: Output<List<String>>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<DataSourceWindowsEventArgs>

Manages a Log Analytics Windows Event DataSource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.loganalytics.DataSourceWindowsEvent;
import com.pulumi.azure.loganalytics.DataSourceWindowsEventArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.build());
var exampleDataSourceWindowsEvent = new DataSourceWindowsEvent("exampleDataSourceWindowsEvent", DataSourceWindowsEventArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.workspaceName(exampleAnalyticsWorkspace.name())
.eventLogName("Application")
.eventTypes("Error")
.build());
}
}

Import

Log Analytics Windows Event DataSources can be imported using the resource id, e.g.

$ pulumi import azure:loganalytics/dataSourceWindowsEvent:DataSourceWindowsEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataSources/datasource1

Constructors

Link copied to clipboard
fun DataSourceWindowsEventArgs(eventLogName: Output<String>? = null, eventTypes: Output<List<String>>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, workspaceName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DataSourceWindowsEventArgs

Properties

Link copied to clipboard
val eventLogName: Output<String>? = null

Specifies the name of the Windows Event Log to collect events from.

Link copied to clipboard
val eventTypes: Output<List<String>>? = null

Specifies an array of event types applied to the specified event log. Possible values include Error, Warning and Information.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.