We recommend using Azure Native.
azure.monitoring.DataCollectionRule
Explore with Pulumi AI
Manages a Data Collection Rule.
Create DataCollectionRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataCollectionRule(name: string, args: DataCollectionRuleArgs, opts?: CustomResourceOptions);@overload
def DataCollectionRule(resource_name: str,
                       args: DataCollectionRuleArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def DataCollectionRule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       data_flows: Optional[Sequence[DataCollectionRuleDataFlowArgs]] = None,
                       destinations: Optional[DataCollectionRuleDestinationsArgs] = None,
                       resource_group_name: Optional[str] = None,
                       data_collection_endpoint_id: Optional[str] = None,
                       data_sources: Optional[DataCollectionRuleDataSourcesArgs] = None,
                       description: Optional[str] = None,
                       identity: Optional[DataCollectionRuleIdentityArgs] = None,
                       kind: Optional[str] = None,
                       location: Optional[str] = None,
                       name: Optional[str] = None,
                       stream_declarations: Optional[Sequence[DataCollectionRuleStreamDeclarationArgs]] = None,
                       tags: Optional[Mapping[str, str]] = None)func NewDataCollectionRule(ctx *Context, name string, args DataCollectionRuleArgs, opts ...ResourceOption) (*DataCollectionRule, error)public DataCollectionRule(string name, DataCollectionRuleArgs args, CustomResourceOptions? opts = null)
public DataCollectionRule(String name, DataCollectionRuleArgs args)
public DataCollectionRule(String name, DataCollectionRuleArgs args, CustomResourceOptions options)
type: azure:monitoring:DataCollectionRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DataCollectionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataCollectionRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataCollectionRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataCollectionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataCollectionRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataCollectionRuleResource = new Azure.Monitoring.DataCollectionRule("dataCollectionRuleResource", new()
{
    DataFlows = new[]
    {
        new Azure.Monitoring.Inputs.DataCollectionRuleDataFlowArgs
        {
            Destinations = new[]
            {
                "string",
            },
            Streams = new[]
            {
                "string",
            },
            BuiltInTransform = "string",
            OutputStream = "string",
            TransformKql = "string",
        },
    },
    Destinations = new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsArgs
    {
        AzureMonitorMetrics = new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsAzureMonitorMetricsArgs
        {
            Name = "string",
        },
        EventHub = new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsEventHubArgs
        {
            EventHubId = "string",
            Name = "string",
        },
        EventHubDirect = new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsEventHubDirectArgs
        {
            EventHubId = "string",
            Name = "string",
        },
        LogAnalytics = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsLogAnalyticArgs
            {
                Name = "string",
                WorkspaceResourceId = "string",
            },
        },
        MonitorAccounts = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsMonitorAccountArgs
            {
                MonitorAccountId = "string",
                Name = "string",
            },
        },
        StorageBlobDirects = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsStorageBlobDirectArgs
            {
                ContainerName = "string",
                Name = "string",
                StorageAccountId = "string",
            },
        },
        StorageBlobs = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsStorageBlobArgs
            {
                ContainerName = "string",
                Name = "string",
                StorageAccountId = "string",
            },
        },
        StorageTableDirects = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDestinationsStorageTableDirectArgs
            {
                Name = "string",
                StorageAccountId = "string",
                TableName = "string",
            },
        },
    },
    ResourceGroupName = "string",
    DataCollectionEndpointId = "string",
    DataSources = new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesArgs
    {
        DataImport = new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesDataImportArgs
        {
            EventHubDataSources = new[]
            {
                new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesDataImportEventHubDataSourceArgs
                {
                    Name = "string",
                    Stream = "string",
                    ConsumerGroup = "string",
                },
            },
        },
        Extensions = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesExtensionArgs
            {
                ExtensionName = "string",
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
                ExtensionJson = "string",
                InputDataSources = new[]
                {
                    "string",
                },
            },
        },
        IisLogs = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesIisLogArgs
            {
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
                LogDirectories = new[]
                {
                    "string",
                },
            },
        },
        LogFiles = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesLogFileArgs
            {
                FilePatterns = new[]
                {
                    "string",
                },
                Format = "string",
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
                Settings = new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesLogFileSettingsArgs
                {
                    Text = new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesLogFileSettingsTextArgs
                    {
                        RecordStartTimestampFormat = "string",
                    },
                },
            },
        },
        PerformanceCounters = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesPerformanceCounterArgs
            {
                CounterSpecifiers = new[]
                {
                    "string",
                },
                Name = "string",
                SamplingFrequencyInSeconds = 0,
                Streams = new[]
                {
                    "string",
                },
            },
        },
        PlatformTelemetries = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesPlatformTelemetryArgs
            {
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
            },
        },
        PrometheusForwarders = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesPrometheusForwarderArgs
            {
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
                LabelIncludeFilters = new[]
                {
                    new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilterArgs
                    {
                        Label = "string",
                        Value = "string",
                    },
                },
            },
        },
        Syslogs = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesSyslogArgs
            {
                FacilityNames = new[]
                {
                    "string",
                },
                LogLevels = new[]
                {
                    "string",
                },
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
            },
        },
        WindowsEventLogs = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesWindowsEventLogArgs
            {
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
                XPathQueries = new[]
                {
                    "string",
                },
            },
        },
        WindowsFirewallLogs = new[]
        {
            new Azure.Monitoring.Inputs.DataCollectionRuleDataSourcesWindowsFirewallLogArgs
            {
                Name = "string",
                Streams = new[]
                {
                    "string",
                },
            },
        },
    },
    Description = "string",
    Identity = new Azure.Monitoring.Inputs.DataCollectionRuleIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    Kind = "string",
    Location = "string",
    Name = "string",
    StreamDeclarations = new[]
    {
        new Azure.Monitoring.Inputs.DataCollectionRuleStreamDeclarationArgs
        {
            Columns = new[]
            {
                new Azure.Monitoring.Inputs.DataCollectionRuleStreamDeclarationColumnArgs
                {
                    Name = "string",
                    Type = "string",
                },
            },
            StreamName = "string",
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := monitoring.NewDataCollectionRule(ctx, "dataCollectionRuleResource", &monitoring.DataCollectionRuleArgs{
	DataFlows: monitoring.DataCollectionRuleDataFlowArray{
		&monitoring.DataCollectionRuleDataFlowArgs{
			Destinations: pulumi.StringArray{
				pulumi.String("string"),
			},
			Streams: pulumi.StringArray{
				pulumi.String("string"),
			},
			BuiltInTransform: pulumi.String("string"),
			OutputStream:     pulumi.String("string"),
			TransformKql:     pulumi.String("string"),
		},
	},
	Destinations: &monitoring.DataCollectionRuleDestinationsArgs{
		AzureMonitorMetrics: &monitoring.DataCollectionRuleDestinationsAzureMonitorMetricsArgs{
			Name: pulumi.String("string"),
		},
		EventHub: &monitoring.DataCollectionRuleDestinationsEventHubArgs{
			EventHubId: pulumi.String("string"),
			Name:       pulumi.String("string"),
		},
		EventHubDirect: &monitoring.DataCollectionRuleDestinationsEventHubDirectArgs{
			EventHubId: pulumi.String("string"),
			Name:       pulumi.String("string"),
		},
		LogAnalytics: monitoring.DataCollectionRuleDestinationsLogAnalyticArray{
			&monitoring.DataCollectionRuleDestinationsLogAnalyticArgs{
				Name:                pulumi.String("string"),
				WorkspaceResourceId: pulumi.String("string"),
			},
		},
		MonitorAccounts: monitoring.DataCollectionRuleDestinationsMonitorAccountArray{
			&monitoring.DataCollectionRuleDestinationsMonitorAccountArgs{
				MonitorAccountId: pulumi.String("string"),
				Name:             pulumi.String("string"),
			},
		},
		StorageBlobDirects: monitoring.DataCollectionRuleDestinationsStorageBlobDirectArray{
			&monitoring.DataCollectionRuleDestinationsStorageBlobDirectArgs{
				ContainerName:    pulumi.String("string"),
				Name:             pulumi.String("string"),
				StorageAccountId: pulumi.String("string"),
			},
		},
		StorageBlobs: monitoring.DataCollectionRuleDestinationsStorageBlobArray{
			&monitoring.DataCollectionRuleDestinationsStorageBlobArgs{
				ContainerName:    pulumi.String("string"),
				Name:             pulumi.String("string"),
				StorageAccountId: pulumi.String("string"),
			},
		},
		StorageTableDirects: monitoring.DataCollectionRuleDestinationsStorageTableDirectArray{
			&monitoring.DataCollectionRuleDestinationsStorageTableDirectArgs{
				Name:             pulumi.String("string"),
				StorageAccountId: pulumi.String("string"),
				TableName:        pulumi.String("string"),
			},
		},
	},
	ResourceGroupName:        pulumi.String("string"),
	DataCollectionEndpointId: pulumi.String("string"),
	DataSources: &monitoring.DataCollectionRuleDataSourcesArgs{
		DataImport: &monitoring.DataCollectionRuleDataSourcesDataImportArgs{
			EventHubDataSources: monitoring.DataCollectionRuleDataSourcesDataImportEventHubDataSourceArray{
				&monitoring.DataCollectionRuleDataSourcesDataImportEventHubDataSourceArgs{
					Name:          pulumi.String("string"),
					Stream:        pulumi.String("string"),
					ConsumerGroup: pulumi.String("string"),
				},
			},
		},
		Extensions: monitoring.DataCollectionRuleDataSourcesExtensionArray{
			&monitoring.DataCollectionRuleDataSourcesExtensionArgs{
				ExtensionName: pulumi.String("string"),
				Name:          pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
				ExtensionJson: pulumi.String("string"),
				InputDataSources: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		IisLogs: monitoring.DataCollectionRuleDataSourcesIisLogArray{
			&monitoring.DataCollectionRuleDataSourcesIisLogArgs{
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
				LogDirectories: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		LogFiles: monitoring.DataCollectionRuleDataSourcesLogFileArray{
			&monitoring.DataCollectionRuleDataSourcesLogFileArgs{
				FilePatterns: pulumi.StringArray{
					pulumi.String("string"),
				},
				Format: pulumi.String("string"),
				Name:   pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
				Settings: &monitoring.DataCollectionRuleDataSourcesLogFileSettingsArgs{
					Text: &monitoring.DataCollectionRuleDataSourcesLogFileSettingsTextArgs{
						RecordStartTimestampFormat: pulumi.String("string"),
					},
				},
			},
		},
		PerformanceCounters: monitoring.DataCollectionRuleDataSourcesPerformanceCounterArray{
			&monitoring.DataCollectionRuleDataSourcesPerformanceCounterArgs{
				CounterSpecifiers: pulumi.StringArray{
					pulumi.String("string"),
				},
				Name:                       pulumi.String("string"),
				SamplingFrequencyInSeconds: pulumi.Int(0),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		PlatformTelemetries: monitoring.DataCollectionRuleDataSourcesPlatformTelemetryArray{
			&monitoring.DataCollectionRuleDataSourcesPlatformTelemetryArgs{
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		PrometheusForwarders: monitoring.DataCollectionRuleDataSourcesPrometheusForwarderArray{
			&monitoring.DataCollectionRuleDataSourcesPrometheusForwarderArgs{
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
				LabelIncludeFilters: monitoring.DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilterArray{
					&monitoring.DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilterArgs{
						Label: pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
			},
		},
		Syslogs: monitoring.DataCollectionRuleDataSourcesSyslogArray{
			&monitoring.DataCollectionRuleDataSourcesSyslogArgs{
				FacilityNames: pulumi.StringArray{
					pulumi.String("string"),
				},
				LogLevels: pulumi.StringArray{
					pulumi.String("string"),
				},
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		WindowsEventLogs: monitoring.DataCollectionRuleDataSourcesWindowsEventLogArray{
			&monitoring.DataCollectionRuleDataSourcesWindowsEventLogArgs{
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
				XPathQueries: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		WindowsFirewallLogs: monitoring.DataCollectionRuleDataSourcesWindowsFirewallLogArray{
			&monitoring.DataCollectionRuleDataSourcesWindowsFirewallLogArgs{
				Name: pulumi.String("string"),
				Streams: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
	},
	Description: pulumi.String("string"),
	Identity: &monitoring.DataCollectionRuleIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	Kind:     pulumi.String("string"),
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	StreamDeclarations: monitoring.DataCollectionRuleStreamDeclarationArray{
		&monitoring.DataCollectionRuleStreamDeclarationArgs{
			Columns: monitoring.DataCollectionRuleStreamDeclarationColumnArray{
				&monitoring.DataCollectionRuleStreamDeclarationColumnArgs{
					Name: pulumi.String("string"),
					Type: pulumi.String("string"),
				},
			},
			StreamName: pulumi.String("string"),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var dataCollectionRuleResource = new DataCollectionRule("dataCollectionRuleResource", DataCollectionRuleArgs.builder()
    .dataFlows(DataCollectionRuleDataFlowArgs.builder()
        .destinations("string")
        .streams("string")
        .builtInTransform("string")
        .outputStream("string")
        .transformKql("string")
        .build())
    .destinations(DataCollectionRuleDestinationsArgs.builder()
        .azureMonitorMetrics(DataCollectionRuleDestinationsAzureMonitorMetricsArgs.builder()
            .name("string")
            .build())
        .eventHub(DataCollectionRuleDestinationsEventHubArgs.builder()
            .eventHubId("string")
            .name("string")
            .build())
        .eventHubDirect(DataCollectionRuleDestinationsEventHubDirectArgs.builder()
            .eventHubId("string")
            .name("string")
            .build())
        .logAnalytics(DataCollectionRuleDestinationsLogAnalyticArgs.builder()
            .name("string")
            .workspaceResourceId("string")
            .build())
        .monitorAccounts(DataCollectionRuleDestinationsMonitorAccountArgs.builder()
            .monitorAccountId("string")
            .name("string")
            .build())
        .storageBlobDirects(DataCollectionRuleDestinationsStorageBlobDirectArgs.builder()
            .containerName("string")
            .name("string")
            .storageAccountId("string")
            .build())
        .storageBlobs(DataCollectionRuleDestinationsStorageBlobArgs.builder()
            .containerName("string")
            .name("string")
            .storageAccountId("string")
            .build())
        .storageTableDirects(DataCollectionRuleDestinationsStorageTableDirectArgs.builder()
            .name("string")
            .storageAccountId("string")
            .tableName("string")
            .build())
        .build())
    .resourceGroupName("string")
    .dataCollectionEndpointId("string")
    .dataSources(DataCollectionRuleDataSourcesArgs.builder()
        .dataImport(DataCollectionRuleDataSourcesDataImportArgs.builder()
            .eventHubDataSources(DataCollectionRuleDataSourcesDataImportEventHubDataSourceArgs.builder()
                .name("string")
                .stream("string")
                .consumerGroup("string")
                .build())
            .build())
        .extensions(DataCollectionRuleDataSourcesExtensionArgs.builder()
            .extensionName("string")
            .name("string")
            .streams("string")
            .extensionJson("string")
            .inputDataSources("string")
            .build())
        .iisLogs(DataCollectionRuleDataSourcesIisLogArgs.builder()
            .name("string")
            .streams("string")
            .logDirectories("string")
            .build())
        .logFiles(DataCollectionRuleDataSourcesLogFileArgs.builder()
            .filePatterns("string")
            .format("string")
            .name("string")
            .streams("string")
            .settings(DataCollectionRuleDataSourcesLogFileSettingsArgs.builder()
                .text(DataCollectionRuleDataSourcesLogFileSettingsTextArgs.builder()
                    .recordStartTimestampFormat("string")
                    .build())
                .build())
            .build())
        .performanceCounters(DataCollectionRuleDataSourcesPerformanceCounterArgs.builder()
            .counterSpecifiers("string")
            .name("string")
            .samplingFrequencyInSeconds(0)
            .streams("string")
            .build())
        .platformTelemetries(DataCollectionRuleDataSourcesPlatformTelemetryArgs.builder()
            .name("string")
            .streams("string")
            .build())
        .prometheusForwarders(DataCollectionRuleDataSourcesPrometheusForwarderArgs.builder()
            .name("string")
            .streams("string")
            .labelIncludeFilters(DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilterArgs.builder()
                .label("string")
                .value("string")
                .build())
            .build())
        .syslogs(DataCollectionRuleDataSourcesSyslogArgs.builder()
            .facilityNames("string")
            .logLevels("string")
            .name("string")
            .streams("string")
            .build())
        .windowsEventLogs(DataCollectionRuleDataSourcesWindowsEventLogArgs.builder()
            .name("string")
            .streams("string")
            .xPathQueries("string")
            .build())
        .windowsFirewallLogs(DataCollectionRuleDataSourcesWindowsFirewallLogArgs.builder()
            .name("string")
            .streams("string")
            .build())
        .build())
    .description("string")
    .identity(DataCollectionRuleIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .kind("string")
    .location("string")
    .name("string")
    .streamDeclarations(DataCollectionRuleStreamDeclarationArgs.builder()
        .columns(DataCollectionRuleStreamDeclarationColumnArgs.builder()
            .name("string")
            .type("string")
            .build())
        .streamName("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
data_collection_rule_resource = azure.monitoring.DataCollectionRule("dataCollectionRuleResource",
    data_flows=[{
        "destinations": ["string"],
        "streams": ["string"],
        "built_in_transform": "string",
        "output_stream": "string",
        "transform_kql": "string",
    }],
    destinations={
        "azure_monitor_metrics": {
            "name": "string",
        },
        "event_hub": {
            "event_hub_id": "string",
            "name": "string",
        },
        "event_hub_direct": {
            "event_hub_id": "string",
            "name": "string",
        },
        "log_analytics": [{
            "name": "string",
            "workspace_resource_id": "string",
        }],
        "monitor_accounts": [{
            "monitor_account_id": "string",
            "name": "string",
        }],
        "storage_blob_directs": [{
            "container_name": "string",
            "name": "string",
            "storage_account_id": "string",
        }],
        "storage_blobs": [{
            "container_name": "string",
            "name": "string",
            "storage_account_id": "string",
        }],
        "storage_table_directs": [{
            "name": "string",
            "storage_account_id": "string",
            "table_name": "string",
        }],
    },
    resource_group_name="string",
    data_collection_endpoint_id="string",
    data_sources={
        "data_import": {
            "event_hub_data_sources": [{
                "name": "string",
                "stream": "string",
                "consumer_group": "string",
            }],
        },
        "extensions": [{
            "extension_name": "string",
            "name": "string",
            "streams": ["string"],
            "extension_json": "string",
            "input_data_sources": ["string"],
        }],
        "iis_logs": [{
            "name": "string",
            "streams": ["string"],
            "log_directories": ["string"],
        }],
        "log_files": [{
            "file_patterns": ["string"],
            "format": "string",
            "name": "string",
            "streams": ["string"],
            "settings": {
                "text": {
                    "record_start_timestamp_format": "string",
                },
            },
        }],
        "performance_counters": [{
            "counter_specifiers": ["string"],
            "name": "string",
            "sampling_frequency_in_seconds": 0,
            "streams": ["string"],
        }],
        "platform_telemetries": [{
            "name": "string",
            "streams": ["string"],
        }],
        "prometheus_forwarders": [{
            "name": "string",
            "streams": ["string"],
            "label_include_filters": [{
                "label": "string",
                "value": "string",
            }],
        }],
        "syslogs": [{
            "facility_names": ["string"],
            "log_levels": ["string"],
            "name": "string",
            "streams": ["string"],
        }],
        "windows_event_logs": [{
            "name": "string",
            "streams": ["string"],
            "x_path_queries": ["string"],
        }],
        "windows_firewall_logs": [{
            "name": "string",
            "streams": ["string"],
        }],
    },
    description="string",
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    kind="string",
    location="string",
    name="string",
    stream_declarations=[{
        "columns": [{
            "name": "string",
            "type": "string",
        }],
        "stream_name": "string",
    }],
    tags={
        "string": "string",
    })
const dataCollectionRuleResource = new azure.monitoring.DataCollectionRule("dataCollectionRuleResource", {
    dataFlows: [{
        destinations: ["string"],
        streams: ["string"],
        builtInTransform: "string",
        outputStream: "string",
        transformKql: "string",
    }],
    destinations: {
        azureMonitorMetrics: {
            name: "string",
        },
        eventHub: {
            eventHubId: "string",
            name: "string",
        },
        eventHubDirect: {
            eventHubId: "string",
            name: "string",
        },
        logAnalytics: [{
            name: "string",
            workspaceResourceId: "string",
        }],
        monitorAccounts: [{
            monitorAccountId: "string",
            name: "string",
        }],
        storageBlobDirects: [{
            containerName: "string",
            name: "string",
            storageAccountId: "string",
        }],
        storageBlobs: [{
            containerName: "string",
            name: "string",
            storageAccountId: "string",
        }],
        storageTableDirects: [{
            name: "string",
            storageAccountId: "string",
            tableName: "string",
        }],
    },
    resourceGroupName: "string",
    dataCollectionEndpointId: "string",
    dataSources: {
        dataImport: {
            eventHubDataSources: [{
                name: "string",
                stream: "string",
                consumerGroup: "string",
            }],
        },
        extensions: [{
            extensionName: "string",
            name: "string",
            streams: ["string"],
            extensionJson: "string",
            inputDataSources: ["string"],
        }],
        iisLogs: [{
            name: "string",
            streams: ["string"],
            logDirectories: ["string"],
        }],
        logFiles: [{
            filePatterns: ["string"],
            format: "string",
            name: "string",
            streams: ["string"],
            settings: {
                text: {
                    recordStartTimestampFormat: "string",
                },
            },
        }],
        performanceCounters: [{
            counterSpecifiers: ["string"],
            name: "string",
            samplingFrequencyInSeconds: 0,
            streams: ["string"],
        }],
        platformTelemetries: [{
            name: "string",
            streams: ["string"],
        }],
        prometheusForwarders: [{
            name: "string",
            streams: ["string"],
            labelIncludeFilters: [{
                label: "string",
                value: "string",
            }],
        }],
        syslogs: [{
            facilityNames: ["string"],
            logLevels: ["string"],
            name: "string",
            streams: ["string"],
        }],
        windowsEventLogs: [{
            name: "string",
            streams: ["string"],
            xPathQueries: ["string"],
        }],
        windowsFirewallLogs: [{
            name: "string",
            streams: ["string"],
        }],
    },
    description: "string",
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    kind: "string",
    location: "string",
    name: "string",
    streamDeclarations: [{
        columns: [{
            name: "string",
            type: "string",
        }],
        streamName: "string",
    }],
    tags: {
        string: "string",
    },
});
type: azure:monitoring:DataCollectionRule
properties:
    dataCollectionEndpointId: string
    dataFlows:
        - builtInTransform: string
          destinations:
            - string
          outputStream: string
          streams:
            - string
          transformKql: string
    dataSources:
        dataImport:
            eventHubDataSources:
                - consumerGroup: string
                  name: string
                  stream: string
        extensions:
            - extensionJson: string
              extensionName: string
              inputDataSources:
                - string
              name: string
              streams:
                - string
        iisLogs:
            - logDirectories:
                - string
              name: string
              streams:
                - string
        logFiles:
            - filePatterns:
                - string
              format: string
              name: string
              settings:
                text:
                    recordStartTimestampFormat: string
              streams:
                - string
        performanceCounters:
            - counterSpecifiers:
                - string
              name: string
              samplingFrequencyInSeconds: 0
              streams:
                - string
        platformTelemetries:
            - name: string
              streams:
                - string
        prometheusForwarders:
            - labelIncludeFilters:
                - label: string
                  value: string
              name: string
              streams:
                - string
        syslogs:
            - facilityNames:
                - string
              logLevels:
                - string
              name: string
              streams:
                - string
        windowsEventLogs:
            - name: string
              streams:
                - string
              xPathQueries:
                - string
        windowsFirewallLogs:
            - name: string
              streams:
                - string
    description: string
    destinations:
        azureMonitorMetrics:
            name: string
        eventHub:
            eventHubId: string
            name: string
        eventHubDirect:
            eventHubId: string
            name: string
        logAnalytics:
            - name: string
              workspaceResourceId: string
        monitorAccounts:
            - monitorAccountId: string
              name: string
        storageBlobDirects:
            - containerName: string
              name: string
              storageAccountId: string
        storageBlobs:
            - containerName: string
              name: string
              storageAccountId: string
        storageTableDirects:
            - name: string
              storageAccountId: string
              tableName: string
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    kind: string
    location: string
    name: string
    resourceGroupName: string
    streamDeclarations:
        - columns:
            - name: string
              type: string
          streamName: string
    tags:
        string: string
DataCollectionRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataCollectionRule resource accepts the following input properties:
- DataFlows List<DataCollection Rule Data Flow> 
- One or more data_flowblocks as defined below.
- Destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- ResourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- DataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- DataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- Description string
- The description of the Data Collection Rule.
- Identity
DataCollection Rule Identity 
- An identityblock as defined below.
- Kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- Location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- Name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- StreamDeclarations List<DataCollection Rule Stream Declaration> 
- A stream_declarationblock as defined below.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Data Collection Rule.
- DataFlows []DataCollection Rule Data Flow Args 
- One or more data_flowblocks as defined below.
- Destinations
DataCollection Rule Destinations Args 
- A destinationsblock as defined below.
- ResourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- DataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- DataSources DataCollection Rule Data Sources Args 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- Description string
- The description of the Data Collection Rule.
- Identity
DataCollection Rule Identity Args 
- An identityblock as defined below.
- Kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- Location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- Name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- StreamDeclarations []DataCollection Rule Stream Declaration Args 
- A stream_declarationblock as defined below.
- map[string]string
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataFlows List<DataCollection Rule Data Flow> 
- One or more data_flowblocks as defined below.
- destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- resourceGroup StringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- dataCollection StringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description String
- The description of the Data Collection Rule.
- identity
DataCollection Rule Identity 
- An identityblock as defined below.
- kind String
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location String
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name String
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations List<DataCollection Rule Stream Declaration> 
- A stream_declarationblock as defined below.
- Map<String,String>
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataFlows DataCollection Rule Data Flow[] 
- One or more data_flowblocks as defined below.
- destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- resourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- dataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description string
- The description of the Data Collection Rule.
- identity
DataCollection Rule Identity 
- An identityblock as defined below.
- kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations DataCollection Rule Stream Declaration[] 
- A stream_declarationblock as defined below.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Data Collection Rule.
- data_flows Sequence[DataCollection Rule Data Flow Args] 
- One or more data_flowblocks as defined below.
- destinations
DataCollection Rule Destinations Args 
- A destinationsblock as defined below.
- resource_group_ strname 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- data_collection_ strendpoint_ id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- data_sources DataCollection Rule Data Sources Args 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description str
- The description of the Data Collection Rule.
- identity
DataCollection Rule Identity Args 
- An identityblock as defined below.
- kind str
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location str
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name str
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- stream_declarations Sequence[DataCollection Rule Stream Declaration Args] 
- A stream_declarationblock as defined below.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataFlows List<Property Map>
- One or more data_flowblocks as defined below.
- destinations Property Map
- A destinationsblock as defined below.
- resourceGroup StringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- dataCollection StringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataSources Property Map
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description String
- The description of the Data Collection Rule.
- identity Property Map
- An identityblock as defined below.
- kind String
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location String
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name String
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations List<Property Map>
- A stream_declarationblock as defined below.
- Map<String>
- A mapping of tags which should be assigned to the Data Collection Rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataCollectionRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- ImmutableId string
- The immutable ID of the Data Collection Rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImmutableId string
- The immutable ID of the Data Collection Rule.
- id String
- The provider-assigned unique ID for this managed resource.
- immutableId String
- The immutable ID of the Data Collection Rule.
- id string
- The provider-assigned unique ID for this managed resource.
- immutableId string
- The immutable ID of the Data Collection Rule.
- id str
- The provider-assigned unique ID for this managed resource.
- immutable_id str
- The immutable ID of the Data Collection Rule.
- id String
- The provider-assigned unique ID for this managed resource.
- immutableId String
- The immutable ID of the Data Collection Rule.
Look up Existing DataCollectionRule Resource
Get an existing DataCollectionRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataCollectionRuleState, opts?: CustomResourceOptions): DataCollectionRule@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data_collection_endpoint_id: Optional[str] = None,
        data_flows: Optional[Sequence[DataCollectionRuleDataFlowArgs]] = None,
        data_sources: Optional[DataCollectionRuleDataSourcesArgs] = None,
        description: Optional[str] = None,
        destinations: Optional[DataCollectionRuleDestinationsArgs] = None,
        identity: Optional[DataCollectionRuleIdentityArgs] = None,
        immutable_id: Optional[str] = None,
        kind: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        stream_declarations: Optional[Sequence[DataCollectionRuleStreamDeclarationArgs]] = None,
        tags: Optional[Mapping[str, str]] = None) -> DataCollectionRulefunc GetDataCollectionRule(ctx *Context, name string, id IDInput, state *DataCollectionRuleState, opts ...ResourceOption) (*DataCollectionRule, error)public static DataCollectionRule Get(string name, Input<string> id, DataCollectionRuleState? state, CustomResourceOptions? opts = null)public static DataCollectionRule get(String name, Output<String> id, DataCollectionRuleState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- DataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- DataFlows List<DataCollection Rule Data Flow> 
- One or more data_flowblocks as defined below.
- DataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- Description string
- The description of the Data Collection Rule.
- Destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- Identity
DataCollection Rule Identity 
- An identityblock as defined below.
- ImmutableId string
- The immutable ID of the Data Collection Rule.
- Kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- Location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- Name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- StreamDeclarations List<DataCollection Rule Stream Declaration> 
- A stream_declarationblock as defined below.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Data Collection Rule.
- DataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- DataFlows []DataCollection Rule Data Flow Args 
- One or more data_flowblocks as defined below.
- DataSources DataCollection Rule Data Sources Args 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- Description string
- The description of the Data Collection Rule.
- Destinations
DataCollection Rule Destinations Args 
- A destinationsblock as defined below.
- Identity
DataCollection Rule Identity Args 
- An identityblock as defined below.
- ImmutableId string
- The immutable ID of the Data Collection Rule.
- Kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- Location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- Name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- StreamDeclarations []DataCollection Rule Stream Declaration Args 
- A stream_declarationblock as defined below.
- map[string]string
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataCollection StringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataFlows List<DataCollection Rule Data Flow> 
- One or more data_flowblocks as defined below.
- dataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description String
- The description of the Data Collection Rule.
- destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- identity
DataCollection Rule Identity 
- An identityblock as defined below.
- immutableId String
- The immutable ID of the Data Collection Rule.
- kind String
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location String
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name String
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations List<DataCollection Rule Stream Declaration> 
- A stream_declarationblock as defined below.
- Map<String,String>
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataCollection stringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataFlows DataCollection Rule Data Flow[] 
- One or more data_flowblocks as defined below.
- dataSources DataCollection Rule Data Sources 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description string
- The description of the Data Collection Rule.
- destinations
DataCollection Rule Destinations 
- A destinationsblock as defined below.
- identity
DataCollection Rule Identity 
- An identityblock as defined below.
- immutableId string
- The immutable ID of the Data Collection Rule.
- kind string
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location string
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name string
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- resourceGroup stringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations DataCollection Rule Stream Declaration[] 
- A stream_declarationblock as defined below.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Data Collection Rule.
- data_collection_ strendpoint_ id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- data_flows Sequence[DataCollection Rule Data Flow Args] 
- One or more data_flowblocks as defined below.
- data_sources DataCollection Rule Data Sources Args 
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description str
- The description of the Data Collection Rule.
- destinations
DataCollection Rule Destinations Args 
- A destinationsblock as defined below.
- identity
DataCollection Rule Identity Args 
- An identityblock as defined below.
- immutable_id str
- The immutable ID of the Data Collection Rule.
- kind str
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location str
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name str
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- resource_group_ strname 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- stream_declarations Sequence[DataCollection Rule Stream Declaration Args] 
- A stream_declarationblock as defined below.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Data Collection Rule.
- dataCollection StringEndpoint Id 
- The resource ID of the Data Collection Endpoint that this rule can be used with.
- dataFlows List<Property Map>
- One or more data_flowblocks as defined below.
- dataSources Property Map
- A data_sourcesblock as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
- description String
- The description of the Data Collection Rule.
- destinations Property Map
- A destinationsblock as defined below.
- identity Property Map
- An identityblock as defined below.
- immutableId String
- The immutable ID of the Data Collection Rule.
- kind String
- The kind of the Data Collection Rule. Possible values are - Linux,- Windows,- AgentDirectToStoreand- WorkspaceTransforms. A rule of kind- Linuxdoes not allow for- windows_event_logdata sources. And a rule of kind- Windowsdoes not allow for- syslogdata sources. If kind is not specified, all kinds of data sources are allowed.- NOTE Once - kindhas been set, changing it forces a new Data Collection Rule to be created.
- location String
- The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- name String
- The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.
- streamDeclarations List<Property Map>
- A stream_declarationblock as defined below.
- Map<String>
- A mapping of tags which should be assigned to the Data Collection Rule.
Supporting Types
DataCollectionRuleDataFlow, DataCollectionRuleDataFlowArgs          
- Destinations List<string>
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- Streams List<string>
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- BuiltIn stringTransform 
- The built-in transform to transform stream data.
- OutputStream string
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- TransformKql string
- The KQL query to transform stream data.
- Destinations []string
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- Streams []string
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- BuiltIn stringTransform 
- The built-in transform to transform stream data.
- OutputStream string
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- TransformKql string
- The KQL query to transform stream data.
- destinations List<String>
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- streams List<String>
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- builtIn StringTransform 
- The built-in transform to transform stream data.
- outputStream String
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- transformKql String
- The KQL query to transform stream data.
- destinations string[]
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- streams string[]
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- builtIn stringTransform 
- The built-in transform to transform stream data.
- outputStream string
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- transformKql string
- The KQL query to transform stream data.
- destinations Sequence[str]
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- streams Sequence[str]
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- built_in_ strtransform 
- The built-in transform to transform stream data.
- output_stream str
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- transform_kql str
- The KQL query to transform stream data.
- destinations List<String>
- Specifies a list of destination names. A azure_monitor_metricsdata source only allows for stream of kindMicrosoft-InsightsMetrics.
- streams List<String>
- Specifies a list of streams. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent, andMicrosoft-PrometheusMetrics.
- builtIn StringTransform 
- The built-in transform to transform stream data.
- outputStream String
- The output stream of the transform. Only required if the data flow changes data to a different stream.
- transformKql String
- The KQL query to transform stream data.
DataCollectionRuleDataSources, DataCollectionRuleDataSourcesArgs          
- DataImport DataCollection Rule Data Sources Data Import 
- A data_importblock as defined above.
- Extensions
List<DataCollection Rule Data Sources Extension> 
- One or more extensionblocks as defined below.
- IisLogs List<DataCollection Rule Data Sources Iis Log> 
- One or more iis_logblocks as defined below.
- LogFiles List<DataCollection Rule Data Sources Log File> 
- One or more log_fileblocks as defined below.
- PerformanceCounters List<DataCollection Rule Data Sources Performance Counter> 
- One or more performance_counterblocks as defined below.
- PlatformTelemetries List<DataCollection Rule Data Sources Platform Telemetry> 
- One or more platform_telemetryblocks as defined below.
- PrometheusForwarders List<DataCollection Rule Data Sources Prometheus Forwarder> 
- One or more prometheus_forwarderblocks as defined below.
- Syslogs
List<DataCollection Rule Data Sources Syslog> 
- One or more syslogblocks as defined below.
- WindowsEvent List<DataLogs Collection Rule Data Sources Windows Event Log> 
- One or more windows_event_logblocks as defined below.
- WindowsFirewall List<DataLogs Collection Rule Data Sources Windows Firewall Log> 
- One or more windows_firewall_logblocks as defined below.
- DataImport DataCollection Rule Data Sources Data Import 
- A data_importblock as defined above.
- Extensions
[]DataCollection Rule Data Sources Extension 
- One or more extensionblocks as defined below.
- IisLogs []DataCollection Rule Data Sources Iis Log 
- One or more iis_logblocks as defined below.
- LogFiles []DataCollection Rule Data Sources Log File 
- One or more log_fileblocks as defined below.
- PerformanceCounters []DataCollection Rule Data Sources Performance Counter 
- One or more performance_counterblocks as defined below.
- PlatformTelemetries []DataCollection Rule Data Sources Platform Telemetry 
- One or more platform_telemetryblocks as defined below.
- PrometheusForwarders []DataCollection Rule Data Sources Prometheus Forwarder 
- One or more prometheus_forwarderblocks as defined below.
- Syslogs
[]DataCollection Rule Data Sources Syslog 
- One or more syslogblocks as defined below.
- WindowsEvent []DataLogs Collection Rule Data Sources Windows Event Log 
- One or more windows_event_logblocks as defined below.
- WindowsFirewall []DataLogs Collection Rule Data Sources Windows Firewall Log 
- One or more windows_firewall_logblocks as defined below.
- dataImport DataCollection Rule Data Sources Data Import 
- A data_importblock as defined above.
- extensions
List<DataCollection Rule Data Sources Extension> 
- One or more extensionblocks as defined below.
- iisLogs List<DataCollection Rule Data Sources Iis Log> 
- One or more iis_logblocks as defined below.
- logFiles List<DataCollection Rule Data Sources Log File> 
- One or more log_fileblocks as defined below.
- performanceCounters List<DataCollection Rule Data Sources Performance Counter> 
- One or more performance_counterblocks as defined below.
- platformTelemetries List<DataCollection Rule Data Sources Platform Telemetry> 
- One or more platform_telemetryblocks as defined below.
- prometheusForwarders List<DataCollection Rule Data Sources Prometheus Forwarder> 
- One or more prometheus_forwarderblocks as defined below.
- syslogs
List<DataCollection Rule Data Sources Syslog> 
- One or more syslogblocks as defined below.
- windowsEvent List<DataLogs Collection Rule Data Sources Windows Event Log> 
- One or more windows_event_logblocks as defined below.
- windowsFirewall List<DataLogs Collection Rule Data Sources Windows Firewall Log> 
- One or more windows_firewall_logblocks as defined below.
- dataImport DataCollection Rule Data Sources Data Import 
- A data_importblock as defined above.
- extensions
DataCollection Rule Data Sources Extension[] 
- One or more extensionblocks as defined below.
- iisLogs DataCollection Rule Data Sources Iis Log[] 
- One or more iis_logblocks as defined below.
- logFiles DataCollection Rule Data Sources Log File[] 
- One or more log_fileblocks as defined below.
- performanceCounters DataCollection Rule Data Sources Performance Counter[] 
- One or more performance_counterblocks as defined below.
- platformTelemetries DataCollection Rule Data Sources Platform Telemetry[] 
- One or more platform_telemetryblocks as defined below.
- prometheusForwarders DataCollection Rule Data Sources Prometheus Forwarder[] 
- One or more prometheus_forwarderblocks as defined below.
- syslogs
DataCollection Rule Data Sources Syslog[] 
- One or more syslogblocks as defined below.
- windowsEvent DataLogs Collection Rule Data Sources Windows Event Log[] 
- One or more windows_event_logblocks as defined below.
- windowsFirewall DataLogs Collection Rule Data Sources Windows Firewall Log[] 
- One or more windows_firewall_logblocks as defined below.
- data_import DataCollection Rule Data Sources Data Import 
- A data_importblock as defined above.
- extensions
Sequence[DataCollection Rule Data Sources Extension] 
- One or more extensionblocks as defined below.
- iis_logs Sequence[DataCollection Rule Data Sources Iis Log] 
- One or more iis_logblocks as defined below.
- log_files Sequence[DataCollection Rule Data Sources Log File] 
- One or more log_fileblocks as defined below.
- performance_counters Sequence[DataCollection Rule Data Sources Performance Counter] 
- One or more performance_counterblocks as defined below.
- platform_telemetries Sequence[DataCollection Rule Data Sources Platform Telemetry] 
- One or more platform_telemetryblocks as defined below.
- prometheus_forwarders Sequence[DataCollection Rule Data Sources Prometheus Forwarder] 
- One or more prometheus_forwarderblocks as defined below.
- syslogs
Sequence[DataCollection Rule Data Sources Syslog] 
- One or more syslogblocks as defined below.
- windows_event_ Sequence[Datalogs Collection Rule Data Sources Windows Event Log] 
- One or more windows_event_logblocks as defined below.
- windows_firewall_ Sequence[Datalogs Collection Rule Data Sources Windows Firewall Log] 
- One or more windows_firewall_logblocks as defined below.
- dataImport Property Map
- A data_importblock as defined above.
- extensions List<Property Map>
- One or more extensionblocks as defined below.
- iisLogs List<Property Map>
- One or more iis_logblocks as defined below.
- logFiles List<Property Map>
- One or more log_fileblocks as defined below.
- performanceCounters List<Property Map>
- One or more performance_counterblocks as defined below.
- platformTelemetries List<Property Map>
- One or more platform_telemetryblocks as defined below.
- prometheusForwarders List<Property Map>
- One or more prometheus_forwarderblocks as defined below.
- syslogs List<Property Map>
- One or more syslogblocks as defined below.
- windowsEvent List<Property Map>Logs 
- One or more windows_event_logblocks as defined below.
- windowsFirewall List<Property Map>Logs 
- One or more windows_firewall_logblocks as defined below.
DataCollectionRuleDataSourcesDataImport, DataCollectionRuleDataSourcesDataImportArgs              
- EventHub List<DataData Sources Collection Rule Data Sources Data Import Event Hub Data Source> 
- An event_hub_data_sourceblock as defined below.
- EventHub []DataData Sources Collection Rule Data Sources Data Import Event Hub Data Source 
- An event_hub_data_sourceblock as defined below.
- eventHub List<DataData Sources Collection Rule Data Sources Data Import Event Hub Data Source> 
- An event_hub_data_sourceblock as defined below.
- eventHub DataData Sources Collection Rule Data Sources Data Import Event Hub Data Source[] 
- An event_hub_data_sourceblock as defined below.
- event_hub_ Sequence[Datadata_ sources Collection Rule Data Sources Data Import Event Hub Data Source] 
- An event_hub_data_sourceblock as defined below.
- eventHub List<Property Map>Data Sources 
- An event_hub_data_sourceblock as defined below.
DataCollectionRuleDataSourcesDataImportEventHubDataSource, DataCollectionRuleDataSourcesDataImportEventHubDataSourceArgs                      
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Stream string
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- ConsumerGroup string
- The Event Hub consumer group name.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Stream string
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- ConsumerGroup string
- The Event Hub consumer group name.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- stream String
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- consumerGroup String
- The Event Hub consumer group name.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- stream string
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- consumerGroup string
- The Event Hub consumer group name.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- stream str
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- consumer_group str
- The Event Hub consumer group name.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- stream String
- The stream to collect from Event Hub. Possible value should be a custom stream name.
- consumerGroup String
- The Event Hub consumer group name.
DataCollectionRuleDataSourcesExtension, DataCollectionRuleDataSourcesExtensionArgs            
- ExtensionName string
- The name of the VM extension.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- ExtensionJson string
- A JSON String which specifies the extension setting.
- InputData List<string>Sources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
- ExtensionName string
- The name of the VM extension.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- ExtensionJson string
- A JSON String which specifies the extension setting.
- InputData []stringSources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
- extensionName String
- The name of the VM extension.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- extensionJson String
- A JSON String which specifies the extension setting.
- inputData List<String>Sources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
- extensionName string
- The name of the VM extension.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- extensionJson string
- A JSON String which specifies the extension setting.
- inputData string[]Sources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
- extension_name str
- The name of the VM extension.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- extension_json str
- A JSON String which specifies the extension setting.
- input_data_ Sequence[str]sources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
- extensionName String
- The name of the VM extension.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,Microsoft-InsightsMetrics,Microsoft-Perf,Microsoft-Syslog,Microsoft-WindowsEvent.
- extensionJson String
- A JSON String which specifies the extension setting.
- inputData List<String>Sources 
- Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter,windows_event_log,andsyslog.
DataCollectionRuleDataSourcesIisLog, DataCollectionRuleDataSourcesIisLogArgs              
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- LogDirectories List<string>
- Specifies a list of absolute paths where the log files are located.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- LogDirectories []string
- Specifies a list of absolute paths where the log files are located.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- logDirectories List<String>
- Specifies a list of absolute paths where the log files are located.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- logDirectories string[]
- Specifies a list of absolute paths where the log files are located.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- log_directories Sequence[str]
- Specifies a list of absolute paths where the log files are located.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-W3CIISLog.
- logDirectories List<String>
- Specifies a list of absolute paths where the log files are located.
DataCollectionRuleDataSourcesLogFile, DataCollectionRuleDataSourcesLogFileArgs              
- FilePatterns List<string>
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- Format string
- The data format of the log files. possible value is text.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- Settings
DataCollection Rule Data Sources Log File Settings 
- A settingsblock as defined below.
- FilePatterns []string
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- Format string
- The data format of the log files. possible value is text.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- Settings
DataCollection Rule Data Sources Log File Settings 
- A settingsblock as defined below.
- filePatterns List<String>
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- format String
- The data format of the log files. possible value is text.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- settings
DataCollection Rule Data Sources Log File Settings 
- A settingsblock as defined below.
- filePatterns string[]
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- format string
- The data format of the log files. possible value is text.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- settings
DataCollection Rule Data Sources Log File Settings 
- A settingsblock as defined below.
- file_patterns Sequence[str]
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- format str
- The data format of the log files. possible value is text.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- settings
DataCollection Rule Data Sources Log File Settings 
- A settingsblock as defined below.
- filePatterns List<String>
- Specifies a list of file patterns where the log files are located. For example, C:\\JavaLogs\\*.log.
- format String
- The data format of the log files. possible value is text.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value should be custom stream names.
- settings Property Map
- A settingsblock as defined below.
DataCollectionRuleDataSourcesLogFileSettings, DataCollectionRuleDataSourcesLogFileSettingsArgs                
- Text
DataCollection Rule Data Sources Log File Settings Text 
- A textblock as defined below.
- Text
DataCollection Rule Data Sources Log File Settings Text 
- A textblock as defined below.
- text
DataCollection Rule Data Sources Log File Settings Text 
- A textblock as defined below.
- text
DataCollection Rule Data Sources Log File Settings Text 
- A textblock as defined below.
- text
DataCollection Rule Data Sources Log File Settings Text 
- A textblock as defined below.
- text Property Map
- A textblock as defined below.
DataCollectionRuleDataSourcesLogFileSettingsText, DataCollectionRuleDataSourcesLogFileSettingsTextArgs                  
- RecordStart stringTimestamp Format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
- RecordStart stringTimestamp Format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
- recordStart StringTimestamp Format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
- recordStart stringTimestamp Format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
- record_start_ strtimestamp_ format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
- recordStart StringTimestamp Format 
- The timestamp format of the text log files. Possible values are ISO 8601,YYYY-MM-DD HH:MM:SS,M/D/YYYY HH:MM:SS AM/PM,Mon DD, YYYY HH:MM:SS,yyMMdd HH:mm:ss,ddMMyy HH:mm:ss,MMM d hh:mm:ss,dd/MMM/yyyy:HH:mm:ss zzz,andyyyy-MM-ddTHH:mm:ssK.
DataCollectionRuleDataSourcesPerformanceCounter, DataCollectionRuleDataSourcesPerformanceCounterArgs              
- CounterSpecifiers List<string>
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- SamplingFrequency intIn Seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
- CounterSpecifiers []string
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- SamplingFrequency intIn Seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
- counterSpecifiers List<String>
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- samplingFrequency IntegerIn Seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
- counterSpecifiers string[]
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- samplingFrequency numberIn Seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
- counter_specifiers Sequence[str]
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- sampling_frequency_ intin_ seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
- counterSpecifiers List<String>
- Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- samplingFrequency NumberIn Seconds 
- The number of seconds between consecutive counter measurements (samples). The value should be integer between 1and1800inclusive.sampling_frequency_in_secondsmust be equal to60seconds for counters collected withMicrosoft-InsightsMetricsstream.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-InsightsMetrics,andMicrosoft-Perf.
DataCollectionRuleDataSourcesPlatformTelemetry, DataCollectionRuleDataSourcesPlatformTelemetryArgs              
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft.Cache/redis:Metrics-Group-All.
DataCollectionRuleDataSourcesPrometheusForwarder, DataCollectionRuleDataSourcesPrometheusForwarderArgs              
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- LabelInclude List<DataFilters Collection Rule Data Sources Prometheus Forwarder Label Include Filter> 
- One or more label_include_filterblocks as defined above.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- LabelInclude []DataFilters Collection Rule Data Sources Prometheus Forwarder Label Include Filter 
- One or more label_include_filterblocks as defined above.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- labelInclude List<DataFilters Collection Rule Data Sources Prometheus Forwarder Label Include Filter> 
- One or more label_include_filterblocks as defined above.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- labelInclude DataFilters Collection Rule Data Sources Prometheus Forwarder Label Include Filter[] 
- One or more label_include_filterblocks as defined above.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- label_include_ Sequence[Datafilters Collection Rule Data Sources Prometheus Forwarder Label Include Filter] 
- One or more label_include_filterblocks as defined above.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible value is Microsoft-PrometheusMetrics.
- labelInclude List<Property Map>Filters 
- One or more label_include_filterblocks as defined above.
DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilter, DataCollectionRuleDataSourcesPrometheusForwarderLabelIncludeFilterArgs                    
DataCollectionRuleDataSourcesSyslog, DataCollectionRuleDataSourcesSyslogArgs            
- FacilityNames List<string>
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- LogLevels List<string>
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
- FacilityNames []string
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- LogLevels []string
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
- facilityNames List<String>
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- logLevels List<String>
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
- facilityNames string[]
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- logLevels string[]
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
- facility_names Sequence[str]
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- log_levels Sequence[str]
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
- facilityNames List<String>
- Specifies a list of facility names. Use a wildcard *to collect logs for all facility names. Possible values arealert,*,audit,auth,authpriv,clock,cron,daemon,ftp,kern,local5,local4,local1,local7,local6,local3,local2,local0,lpr,mail,mark,news,nopri,ntp,syslog,useranduucp.
- logLevels List<String>
- Specifies a list of log levels. Use a wildcard *to collect logs for all log levels. Possible values areDebug,Info,Notice,Warning,Error,Critical,Alert,Emergency,and*.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Syslog,andMicrosoft-CiscoAsa, andMicrosoft-CommonSecurityLog.
DataCollectionRuleDataSourcesWindowsEventLog, DataCollectionRuleDataSourcesWindowsEventLogArgs                
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- XPathQueries List<string>
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- XPathQueries []string
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- xPath List<String>Queries 
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- xPath string[]Queries 
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- x_path_ Sequence[str]queries 
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,andMicrosoft-WindowsEvent,Microsoft-RomeDetectionEvent, andMicrosoft-SecurityEvent.
- xPath List<String>Queries 
- Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
DataCollectionRuleDataSourcesWindowsFirewallLog, DataCollectionRuleDataSourcesWindowsFirewallLogArgs                
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams List<string>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
- Name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- Streams []string
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
- name string
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams string[]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
- name str
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams Sequence[str]
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
- name String
- The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
- streams List<String>
- Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
DataCollectionRuleDestinations, DataCollectionRuleDestinationsArgs        
- AzureMonitor DataMetrics Collection Rule Destinations Azure Monitor Metrics 
- A azure_monitor_metricsblock as defined above.
- EventHub DataCollection Rule Destinations Event Hub 
- One or more event_hubblocks as defined below.
- EventHub DataDirect Collection Rule Destinations Event Hub Direct 
- One or more event_hubblocks as defined below.
- LogAnalytics List<DataCollection Rule Destinations Log Analytic> 
- One or more log_analyticsblocks as defined below.
- MonitorAccounts List<DataCollection Rule Destinations Monitor Account> 
- One or more monitor_accountblocks as defined below.
- StorageBlob List<DataDirects Collection Rule Destinations Storage Blob Direct> 
- One or more storage_blob_directblocks as defined below.
- StorageBlobs List<DataCollection Rule Destinations Storage Blob> 
- One or more storage_blobblocks as defined below.
- StorageTable List<DataDirects Collection Rule Destinations Storage Table Direct> 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
- AzureMonitor DataMetrics Collection Rule Destinations Azure Monitor Metrics 
- A azure_monitor_metricsblock as defined above.
- EventHub DataCollection Rule Destinations Event Hub 
- One or more event_hubblocks as defined below.
- EventHub DataDirect Collection Rule Destinations Event Hub Direct 
- One or more event_hubblocks as defined below.
- LogAnalytics []DataCollection Rule Destinations Log Analytic 
- One or more log_analyticsblocks as defined below.
- MonitorAccounts []DataCollection Rule Destinations Monitor Account 
- One or more monitor_accountblocks as defined below.
- StorageBlob []DataDirects Collection Rule Destinations Storage Blob Direct 
- One or more storage_blob_directblocks as defined below.
- StorageBlobs []DataCollection Rule Destinations Storage Blob 
- One or more storage_blobblocks as defined below.
- StorageTable []DataDirects Collection Rule Destinations Storage Table Direct 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
- azureMonitor DataMetrics Collection Rule Destinations Azure Monitor Metrics 
- A azure_monitor_metricsblock as defined above.
- eventHub DataCollection Rule Destinations Event Hub 
- One or more event_hubblocks as defined below.
- eventHub DataDirect Collection Rule Destinations Event Hub Direct 
- One or more event_hubblocks as defined below.
- logAnalytics List<DataCollection Rule Destinations Log Analytic> 
- One or more log_analyticsblocks as defined below.
- monitorAccounts List<DataCollection Rule Destinations Monitor Account> 
- One or more monitor_accountblocks as defined below.
- storageBlob List<DataDirects Collection Rule Destinations Storage Blob Direct> 
- One or more storage_blob_directblocks as defined below.
- storageBlobs List<DataCollection Rule Destinations Storage Blob> 
- One or more storage_blobblocks as defined below.
- storageTable List<DataDirects Collection Rule Destinations Storage Table Direct> 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
- azureMonitor DataMetrics Collection Rule Destinations Azure Monitor Metrics 
- A azure_monitor_metricsblock as defined above.
- eventHub DataCollection Rule Destinations Event Hub 
- One or more event_hubblocks as defined below.
- eventHub DataDirect Collection Rule Destinations Event Hub Direct 
- One or more event_hubblocks as defined below.
- logAnalytics DataCollection Rule Destinations Log Analytic[] 
- One or more log_analyticsblocks as defined below.
- monitorAccounts DataCollection Rule Destinations Monitor Account[] 
- One or more monitor_accountblocks as defined below.
- storageBlob DataDirects Collection Rule Destinations Storage Blob Direct[] 
- One or more storage_blob_directblocks as defined below.
- storageBlobs DataCollection Rule Destinations Storage Blob[] 
- One or more storage_blobblocks as defined below.
- storageTable DataDirects Collection Rule Destinations Storage Table Direct[] 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
- azure_monitor_ Datametrics Collection Rule Destinations Azure Monitor Metrics 
- A azure_monitor_metricsblock as defined above.
- event_hub DataCollection Rule Destinations Event Hub 
- One or more event_hubblocks as defined below.
- event_hub_ Datadirect Collection Rule Destinations Event Hub Direct 
- One or more event_hubblocks as defined below.
- log_analytics Sequence[DataCollection Rule Destinations Log Analytic] 
- One or more log_analyticsblocks as defined below.
- monitor_accounts Sequence[DataCollection Rule Destinations Monitor Account] 
- One or more monitor_accountblocks as defined below.
- storage_blob_ Sequence[Datadirects Collection Rule Destinations Storage Blob Direct] 
- One or more storage_blob_directblocks as defined below.
- storage_blobs Sequence[DataCollection Rule Destinations Storage Blob] 
- One or more storage_blobblocks as defined below.
- storage_table_ Sequence[Datadirects Collection Rule Destinations Storage Table Direct] 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
- azureMonitor Property MapMetrics 
- A azure_monitor_metricsblock as defined above.
- eventHub Property Map
- One or more event_hubblocks as defined below.
- eventHub Property MapDirect 
- One or more event_hubblocks as defined below.
- logAnalytics List<Property Map>
- One or more log_analyticsblocks as defined below.
- monitorAccounts List<Property Map>
- One or more monitor_accountblocks as defined below.
- storageBlob List<Property Map>Directs 
- One or more storage_blob_directblocks as defined below.
- storageBlobs List<Property Map>
- One or more storage_blobblocks as defined below.
- storageTable List<Property Map>Directs 
- One or more - storage_table_directblocks as defined below.- NOTE - event_hub_direct,- storage_blob_direct, and- storage_table_directare only available for rules of kind- AgentDirectToStore.- NOTE At least one of - azure_monitor_metrics,- event_hub,- event_hub_direct,- log_analytics,- monitor_account,- storage_blob,- storage_blob_direct,and- storage_table_directblocks must be specified.
DataCollectionRuleDestinationsAzureMonitorMetrics, DataCollectionRuleDestinationsAzureMonitorMetricsArgs              
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
DataCollectionRuleDestinationsEventHub, DataCollectionRuleDestinationsEventHubArgs            
- EventHub stringId 
- The resource ID of the Event Hub.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- EventHub stringId 
- The resource ID of the Event Hub.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub StringId 
- The resource ID of the Event Hub.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub stringId 
- The resource ID of the Event Hub.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- event_hub_ strid 
- The resource ID of the Event Hub.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub StringId 
- The resource ID of the Event Hub.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
DataCollectionRuleDestinationsEventHubDirect, DataCollectionRuleDestinationsEventHubDirectArgs              
- EventHub stringId 
- The resource ID of the Event Hub.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- EventHub stringId 
- The resource ID of the Event Hub.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub StringId 
- The resource ID of the Event Hub.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub stringId 
- The resource ID of the Event Hub.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- event_hub_ strid 
- The resource ID of the Event Hub.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- eventHub StringId 
- The resource ID of the Event Hub.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
DataCollectionRuleDestinationsLogAnalytic, DataCollectionRuleDestinationsLogAnalyticArgs            
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- WorkspaceResource stringId 
- The ID of a Log Analytic Workspace resource.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- WorkspaceResource stringId 
- The ID of a Log Analytic Workspace resource.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- workspaceResource StringId 
- The ID of a Log Analytic Workspace resource.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- workspaceResource stringId 
- The ID of a Log Analytic Workspace resource.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- workspace_resource_ strid 
- The ID of a Log Analytic Workspace resource.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- workspaceResource StringId 
- The ID of a Log Analytic Workspace resource.
DataCollectionRuleDestinationsMonitorAccount, DataCollectionRuleDestinationsMonitorAccountArgs            
- MonitorAccount stringId 
- The resource ID of the Monitor Account.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- MonitorAccount stringId 
- The resource ID of the Monitor Account.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- monitorAccount StringId 
- The resource ID of the Monitor Account.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- monitorAccount stringId 
- The resource ID of the Monitor Account.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- monitor_account_ strid 
- The resource ID of the Monitor Account.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- monitorAccount StringId 
- The resource ID of the Monitor Account.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
DataCollectionRuleDestinationsStorageBlob, DataCollectionRuleDestinationsStorageBlobArgs            
- ContainerName string
- The Storage Container name.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- ContainerName string
- The Storage Container name.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- containerName String
- The Storage Container name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
- containerName string
- The Storage Container name.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount stringId 
- The resource ID of the Storage Account.
- container_name str
- The Storage Container name.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storage_account_ strid 
- The resource ID of the Storage Account.
- containerName String
- The Storage Container name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
DataCollectionRuleDestinationsStorageBlobDirect, DataCollectionRuleDestinationsStorageBlobDirectArgs              
- ContainerName string
- The Storage Container name.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- ContainerName string
- The Storage Container name.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- containerName String
- The Storage Container name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
- containerName string
- The Storage Container name.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount stringId 
- The resource ID of the Storage Account.
- container_name str
- The Storage Container name.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storage_account_ strid 
- The resource ID of the Storage Account.
- containerName String
- The Storage Container name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
DataCollectionRuleDestinationsStorageTableDirect, DataCollectionRuleDestinationsStorageTableDirectArgs              
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- TableName string
- The Storage Table name.
- Name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- StorageAccount stringId 
- The resource ID of the Storage Account.
- TableName string
- The Storage Table name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
- tableName String
- The Storage Table name.
- name string
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount stringId 
- The resource ID of the Storage Account.
- tableName string
- The Storage Table name.
- name str
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storage_account_ strid 
- The resource ID of the Storage Account.
- table_name str
- The Storage Table name.
- name String
- The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
- storageAccount StringId 
- The resource ID of the Storage Account.
- tableName String
- The Storage Table name.
DataCollectionRuleIdentity, DataCollectionRuleIdentityArgs        
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- IdentityIds List<string>
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- IdentityIds []string
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
- type string
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- identityIds string[]
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- principalId string
- The Principal ID associated with this Managed Service Identity.
- tenantId string
- The Tenant ID associated with this Managed Service Identity.
- type str
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- identity_ids Sequence[str]
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- principal_id str
- The Principal ID associated with this Managed Service Identity.
- tenant_id str
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. Possible values are SystemAssignedandUserAssigned.
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported. - NOTE: This is required when - typeis set to- UserAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
DataCollectionRuleStreamDeclaration, DataCollectionRuleStreamDeclarationArgs          
- Columns
List<DataCollection Rule Stream Declaration Column> 
- One or more columnblocks as defined above.
- StreamName string
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
- Columns
[]DataCollection Rule Stream Declaration Column 
- One or more columnblocks as defined above.
- StreamName string
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
- columns
List<DataCollection Rule Stream Declaration Column> 
- One or more columnblocks as defined above.
- streamName String
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
- columns
DataCollection Rule Stream Declaration Column[] 
- One or more columnblocks as defined above.
- streamName string
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
- columns
Sequence[DataCollection Rule Stream Declaration Column] 
- One or more columnblocks as defined above.
- stream_name str
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
- columns List<Property Map>
- One or more columnblocks as defined above.
- streamName String
- The name of the custom stream. This name should be unique across all stream_declarationblocks and must begin with a prefix ofCustom-.
DataCollectionRuleStreamDeclarationColumn, DataCollectionRuleStreamDeclarationColumnArgs            
Import
Data Collection Rules can be imported using the resource id, e.g.
$ pulumi import azure:monitoring/dataCollectionRule:DataCollectionRule example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Insights/dataCollectionRules/rule1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.