Azure Classic

v5.25.0 published on Thursday, Nov 24, 2022 by Pulumi

getDataCollectionRule

Use this data source to access information about an existing Data Collection Rule.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Monitoring.GetDataCollectionRule.Invoke(new()
    {
        Name = "example-rule",
        ResourceGroupName = azurerm_resource_group.Example.Name,
    });

    return new Dictionary<string, object?>
    {
        ["ruleId"] = example.Apply(getDataCollectionRuleResult => getDataCollectionRuleResult.Id),
    };
});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := monitoring.LookupDataCollectionRule(ctx, &monitoring.LookupDataCollectionRuleArgs{
			Name:              "example-rule",
			ResourceGroupName: azurerm_resource_group.Example.Name,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ruleId", example.Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.monitoring.MonitoringFunctions;
import com.pulumi.azure.monitoring.inputs.GetDataCollectionRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = MonitoringFunctions.getDataCollectionRule(GetDataCollectionRuleArgs.builder()
            .name("example-rule")
            .resourceGroupName(azurerm_resource_group.example().name())
            .build());

        ctx.export("ruleId", example.applyValue(getDataCollectionRuleResult -> getDataCollectionRuleResult.id()));
    }
}
import pulumi
import pulumi_azure as azure

example = azure.monitoring.get_data_collection_rule(name="example-rule",
    resource_group_name=azurerm_resource_group["example"]["name"])
pulumi.export("ruleId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.monitoring.getDataCollectionRule({
    name: "example-rule",
    resourceGroupName: azurerm_resource_group.example.name,
});
export const ruleId = example.then(example => example.id);
variables:
  example:
    Fn::Invoke:
      Function: azure:monitoring:getDataCollectionRule
      Arguments:
        name: example-rule
        resourceGroupName: ${azurerm_resource_group.example.name}
outputs:
  ruleId: ${example.id}

Using getDataCollectionRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDataCollectionRule(args: GetDataCollectionRuleArgs, opts?: InvokeOptions): Promise<GetDataCollectionRuleResult>
function getDataCollectionRuleOutput(args: GetDataCollectionRuleOutputArgs, opts?: InvokeOptions): Output<GetDataCollectionRuleResult>
def get_data_collection_rule(name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDataCollectionRuleResult
def get_data_collection_rule_output(name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDataCollectionRuleResult]
func LookupDataCollectionRule(ctx *Context, args *LookupDataCollectionRuleArgs, opts ...InvokeOption) (*LookupDataCollectionRuleResult, error)
func LookupDataCollectionRuleOutput(ctx *Context, args *LookupDataCollectionRuleOutputArgs, opts ...InvokeOption) LookupDataCollectionRuleResultOutput

> Note: This function is named LookupDataCollectionRule in the Go SDK.

public static class GetDataCollectionRule 
{
    public static Task<GetDataCollectionRuleResult> InvokeAsync(GetDataCollectionRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetDataCollectionRuleResult> Invoke(GetDataCollectionRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataCollectionRuleResult> getDataCollectionRule(GetDataCollectionRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure:monitoring/getDataCollectionRule:getDataCollectionRule
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

Specifies the name of the Data Collection Rule.

ResourceGroupName string

Specifies the name of the resource group the Data Collection Rule is located in.

Name string

Specifies the name of the Data Collection Rule.

ResourceGroupName string

Specifies the name of the resource group the Data Collection Rule is located in.

name String

Specifies the name of the Data Collection Rule.

resourceGroupName String

Specifies the name of the resource group the Data Collection Rule is located in.

name string

Specifies the name of the Data Collection Rule.

resourceGroupName string

Specifies the name of the resource group the Data Collection Rule is located in.

name str

Specifies the name of the Data Collection Rule.

resource_group_name str

Specifies the name of the resource group the Data Collection Rule is located in.

name String

Specifies the name of the Data Collection Rule.

resourceGroupName String

Specifies the name of the resource group the Data Collection Rule is located in.

getDataCollectionRule Result

The following output properties are available:

DataFlows List<GetDataCollectionRuleDataFlow>

One or more data_flow blocks as defined below.

DataSources List<GetDataCollectionRuleDataSource>

A data_sources block 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 List<GetDataCollectionRuleDestination>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

Id string

The provider-assigned unique ID for this managed resource.

Kind string

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags which should be assigned to the Data Collection Rule.

DataFlows []GetDataCollectionRuleDataFlow

One or more data_flow blocks as defined below.

DataSources []GetDataCollectionRuleDataSource

A data_sources block 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 []GetDataCollectionRuleDestination

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

Id string

The provider-assigned unique ID for this managed resource.

Kind string

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

ResourceGroupName string
Tags map[string]string

A mapping of tags which should be assigned to the Data Collection Rule.

dataFlows List<GetDataCollectionRuleDataFlow>

One or more data_flow blocks as defined below.

dataSources List<GetDataCollectionRuleDataSource>

A data_sources block 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 List<GetDataCollectionRuleDestination>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

id String

The provider-assigned unique ID for this managed resource.

kind String

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

resourceGroupName String
tags Map<String,String>

A mapping of tags which should be assigned to the Data Collection Rule.

dataFlows GetDataCollectionRuleDataFlow[]

One or more data_flow blocks as defined below.

dataSources GetDataCollectionRuleDataSource[]

A data_sources block 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 GetDataCollectionRuleDestination[]

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

id string

The provider-assigned unique ID for this managed resource.

kind string

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

resourceGroupName string
tags {[key: string]: string}

A mapping of tags which should be assigned to the Data Collection Rule.

data_flows Sequence[GetDataCollectionRuleDataFlow]

One or more data_flow blocks as defined below.

data_sources Sequence[GetDataCollectionRuleDataSource]

A data_sources block 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 Sequence[GetDataCollectionRuleDestination]

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

id str

The provider-assigned unique ID for this managed resource.

kind str

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

resource_group_name str
tags Mapping[str, str]

A mapping of tags which should be assigned to the Data Collection Rule.

dataFlows List<Property Map>

One or more data_flow blocks as defined below.

dataSources List<Property Map>

A data_sources block 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 List<Property Map>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

id String

The provider-assigned unique ID for this managed resource.

kind String

The kind of the Data Collection Rule. Possible values are Linux and Windows. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

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 source. This name should be unique across all data sources regardless of type within the Data Collection Rule.

resourceGroupName String
tags Map<String>

A mapping of tags which should be assigned to the Data Collection Rule.

Supporting Types

GetDataCollectionRuleDataFlow

Destinations List<string>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

Destinations []string

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

destinations List<String>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

destinations string[]

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

destinations Sequence[str]

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

destinations List<String>

Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

GetDataCollectionRuleDataSource

Extensions List<GetDataCollectionRuleDataSourceExtension>

One or more extension blocks as defined below.

PerformanceCounters List<GetDataCollectionRuleDataSourcePerformanceCounter>

One or more performance_counter blocks as defined below.

Syslogs List<GetDataCollectionRuleDataSourceSyslog>

One or more syslog blocks as defined below.

WindowsEventLogs List<GetDataCollectionRuleDataSourceWindowsEventLog>

One or more windows_event_log blocks as defined below.

Extensions []GetDataCollectionRuleDataSourceExtension

One or more extension blocks as defined below.

PerformanceCounters []GetDataCollectionRuleDataSourcePerformanceCounter

One or more performance_counter blocks as defined below.

Syslogs []GetDataCollectionRuleDataSourceSyslog

One or more syslog blocks as defined below.

WindowsEventLogs []GetDataCollectionRuleDataSourceWindowsEventLog

One or more windows_event_log blocks as defined below.

extensions List<GetDataCollectionRuleDataSourceExtension>

One or more extension blocks as defined below.

performanceCounters List<GetDataCollectionRuleDataSourcePerformanceCounter>

One or more performance_counter blocks as defined below.

syslogs List<GetDataCollectionRuleDataSourceSyslog>

One or more syslog blocks as defined below.

windowsEventLogs List<GetDataCollectionRuleDataSourceWindowsEventLog>

One or more windows_event_log blocks as defined below.

extensions GetDataCollectionRuleDataSourceExtension[]

One or more extension blocks as defined below.

performanceCounters GetDataCollectionRuleDataSourcePerformanceCounter[]

One or more performance_counter blocks as defined below.

syslogs GetDataCollectionRuleDataSourceSyslog[]

One or more syslog blocks as defined below.

windowsEventLogs GetDataCollectionRuleDataSourceWindowsEventLog[]

One or more windows_event_log blocks as defined below.

extensions Sequence[GetDataCollectionRuleDataSourceExtension]

One or more extension blocks as defined below.

performance_counters Sequence[GetDataCollectionRuleDataSourcePerformanceCounter]

One or more performance_counter blocks as defined below.

syslogs Sequence[GetDataCollectionRuleDataSourceSyslog]

One or more syslog blocks as defined below.

windows_event_logs Sequence[GetDataCollectionRuleDataSourceWindowsEventLog]

One or more windows_event_log blocks as defined below.

extensions List<Property Map>

One or more extension blocks as defined below.

performanceCounters List<Property Map>

One or more performance_counter blocks as defined below.

syslogs List<Property Map>

One or more syslog blocks as defined below.

windowsEventLogs List<Property Map>

One or more windows_event_log blocks as defined below.

GetDataCollectionRuleDataSourceExtension

ExtensionJson string

A JSON String which specifies the extension setting.

ExtensionName string

The name of the VM extension.

InputDataSources List<string>

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,and syslog.

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

ExtensionJson string

A JSON String which specifies the extension setting.

ExtensionName string

The name of the VM extension.

InputDataSources []string

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,and syslog.

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

extensionJson String

A JSON String which specifies the extension setting.

extensionName String

The name of the VM extension.

inputDataSources List<String>

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,and syslog.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

extensionJson string

A JSON String which specifies the extension setting.

extensionName string

The name of the VM extension.

inputDataSources string[]

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,and syslog.

name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

extension_json str

A JSON String which specifies the extension setting.

extension_name str

The name of the VM extension.

input_data_sources Sequence[str]

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,and syslog.

name str

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

extensionJson String

A JSON String which specifies the extension setting.

extensionName String

The name of the VM extension.

inputDataSources List<String>

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,and syslog.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

GetDataCollectionRuleDataSourcePerformanceCounter

CounterSpecifiers List<string>

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

Name string

Specifies the name of the Data Collection Rule.

SamplingFrequencyInSeconds int

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

CounterSpecifiers []string

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

Name string

Specifies the name of the Data Collection Rule.

SamplingFrequencyInSeconds int

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

counterSpecifiers List<String>

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

name String

Specifies the name of the Data Collection Rule.

samplingFrequencyInSeconds Integer

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

counterSpecifiers string[]

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

name string

Specifies the name of the Data Collection Rule.

samplingFrequencyInSeconds number

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

counter_specifiers Sequence[str]

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

name str

Specifies the name of the Data Collection Rule.

sampling_frequency_in_seconds int

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

counterSpecifiers List<String>

Specifies a list of specifier names of the performance counters you want to collect. Use a wildcard * to collect counters for all instances. To get a list of performance counters on Windows, run the command typeperf.

name String

Specifies the name of the Data Collection Rule.

samplingFrequencyInSeconds Number

The number of seconds between consecutive counter measurements (samples). The value should be integer between 1 and 300 inclusive.

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 are Microsoft-Event,and Microsoft-WindowsEvent.

GetDataCollectionRuleDataSourceSyslog

FacilityNames List<string>

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

LogLevels List<string>

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

FacilityNames []string

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

LogLevels []string

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

facilityNames List<String>

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

logLevels List<String>

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

facilityNames string[]

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

logLevels string[]

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

facility_names Sequence[str]

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

log_levels Sequence[str]

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

name str

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

facilityNames List<String>

Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.

logLevels List<String>

Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

GetDataCollectionRuleDataSourceWindowsEventLog

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

XPathQueries List<string>

Specifies a list of Windows Event Log queries in XPath expression.

Name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

XPathQueries []string

Specifies a list of Windows Event Log queries in XPath expression.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

xPathQueries List<String>

Specifies a list of Windows Event Log queries in XPath expression.

name string

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

xPathQueries string[]

Specifies a list of Windows Event Log queries in XPath expression.

name str

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

x_path_queries Sequence[str]

Specifies a list of Windows Event Log queries in XPath expression.

name String

Specifies the name of 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 are Microsoft-Event,and Microsoft-WindowsEvent.

xPathQueries List<String>

Specifies a list of Windows Event Log queries in XPath expression.

GetDataCollectionRuleDestination

AzureMonitorMetrics List<GetDataCollectionRuleDestinationAzureMonitorMetric>

A azure_monitor_metrics block as defined above.

LogAnalytics List<GetDataCollectionRuleDestinationLogAnalytic>

One or more log_analytics blocks as defined below.

AzureMonitorMetrics []GetDataCollectionRuleDestinationAzureMonitorMetric

A azure_monitor_metrics block as defined above.

LogAnalytics []GetDataCollectionRuleDestinationLogAnalytic

One or more log_analytics blocks as defined below.

azureMonitorMetrics List<GetDataCollectionRuleDestinationAzureMonitorMetric>

A azure_monitor_metrics block as defined above.

logAnalytics List<GetDataCollectionRuleDestinationLogAnalytic>

One or more log_analytics blocks as defined below.

azureMonitorMetrics GetDataCollectionRuleDestinationAzureMonitorMetric[]

A azure_monitor_metrics block as defined above.

logAnalytics GetDataCollectionRuleDestinationLogAnalytic[]

One or more log_analytics blocks as defined below.

azure_monitor_metrics Sequence[GetDataCollectionRuleDestinationAzureMonitorMetric]

A azure_monitor_metrics block as defined above.

log_analytics Sequence[GetDataCollectionRuleDestinationLogAnalytic]

One or more log_analytics blocks as defined below.

azureMonitorMetrics List<Property Map>

A azure_monitor_metrics block as defined above.

logAnalytics List<Property Map>

One or more log_analytics blocks as defined below.

GetDataCollectionRuleDestinationAzureMonitorMetric

Name string

Specifies the name of the Data Collection Rule.

Name string

Specifies the name of the Data Collection Rule.

name String

Specifies the name of the Data Collection Rule.

name string

Specifies the name of the Data Collection Rule.

name str

Specifies the name of the Data Collection Rule.

name String

Specifies the name of the Data Collection Rule.

GetDataCollectionRuleDestinationLogAnalytic

Name string

Specifies the name of the Data Collection Rule.

WorkspaceResourceId string

The ID of a Log Analytic Workspace resource.

Name string

Specifies the name of the Data Collection Rule.

WorkspaceResourceId string

The ID of a Log Analytic Workspace resource.

name String

Specifies the name of the Data Collection Rule.

workspaceResourceId String

The ID of a Log Analytic Workspace resource.

name string

Specifies the name of the Data Collection Rule.

workspaceResourceId string

The ID of a Log Analytic Workspace resource.

name str

Specifies the name of the Data Collection Rule.

workspace_resource_id str

The ID of a Log Analytic Workspace resource.

name String

Specifies the name of the Data Collection Rule.

workspaceResourceId String

The ID of a Log Analytic Workspace resource.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.