azure.monitoring.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.
- Resource
Group stringName Specifies the name of the resource group the Data Collection Rule is located in.
- Name string
Specifies the name of the Data Collection Rule.
- Resource
Group stringName Specifies the name of the resource group the Data Collection Rule is located in.
- name String
Specifies the name of the Data Collection Rule.
- resource
Group StringName Specifies the name of the resource group the Data Collection Rule is located in.
- name string
Specifies the name of the Data Collection Rule.
- resource
Group stringName 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_ strname Specifies the name of the resource group the Data Collection Rule is located in.
- name String
Specifies the name of the Data Collection Rule.
- resource
Group StringName Specifies the name of the resource group the Data Collection Rule is located in.
getDataCollectionRule Result
The following output properties are available:
- Data
Flows List<GetData Collection Rule Data Flow> One or more
data_flow
blocks as defined below.- Data
Sources List<GetData Collection Rule Data Source> 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<Get
Data Collection Rule Destination> Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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.
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags which should be assigned to the Data Collection Rule.
- Data
Flows []GetData Collection Rule Data Flow One or more
data_flow
blocks as defined below.- Data
Sources []GetData Collection Rule Data Source 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
[]Get
Data Collection Rule Destination Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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.
- Resource
Group stringName - map[string]string
A mapping of tags which should be assigned to the Data Collection Rule.
- data
Flows List<GetData Collection Rule Data Flow> One or more
data_flow
blocks as defined below.- data
Sources List<GetData Collection Rule Data Source> 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<Get
Data Collection Rule Destination> Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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.
- resource
Group StringName - Map<String,String>
A mapping of tags which should be assigned to the Data Collection Rule.
- data
Flows GetData Collection Rule Data Flow[] One or more
data_flow
blocks as defined below.- data
Sources GetData Collection Rule Data Source[] 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
Get
Data Collection Rule Destination[] Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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.
- resource
Group stringName - {[key: string]: string}
A mapping of tags which should be assigned to the Data Collection Rule.
- data_
flows Sequence[GetData Collection Rule Data Flow] One or more
data_flow
blocks as defined below.- data_
sources Sequence[GetData Collection Rule Data Source] 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[Get
Data Collection Rule Destination] Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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_ strname - Mapping[str, str]
A mapping of tags which should be assigned to the Data Collection Rule.
- data
Flows List<Property Map> One or more
data_flow
blocks as defined below.- data
Sources 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 kindMicrosoft-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
andWindows
. A rule of kindLinux
does not allow forwindows_event_log
data sources. And a rule of kindWindows
does not allow forsyslog
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.
- resource
Group StringName - 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 kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
- Destinations []string
Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
- destinations List<String>
Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
- destinations string[]
Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
- destinations Sequence[str]
Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
- destinations List<String>
Specifies a list of destination names. A
azure_monitor_metrics
data source only allows for stream of kindMicrosoft-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
,andMicrosoft-WindowsEvent
.
GetDataCollectionRuleDataSource
- Extensions
List<Get
Data Collection Rule Data Source Extension> One or more
extension
blocks as defined below.- Performance
Counters List<GetData Collection Rule Data Source Performance Counter> One or more
performance_counter
blocks as defined below.- Syslogs
List<Get
Data Collection Rule Data Source Syslog> One or more
syslog
blocks as defined below.- Windows
Event List<GetLogs Data Collection Rule Data Source Windows Event Log> One or more
windows_event_log
blocks as defined below.
- Extensions
[]Get
Data Collection Rule Data Source Extension One or more
extension
blocks as defined below.- Performance
Counters []GetData Collection Rule Data Source Performance Counter One or more
performance_counter
blocks as defined below.- Syslogs
[]Get
Data Collection Rule Data Source Syslog One or more
syslog
blocks as defined below.- Windows
Event []GetLogs Data Collection Rule Data Source Windows Event Log One or more
windows_event_log
blocks as defined below.
- extensions
List<Get
Data Collection Rule Data Source Extension> One or more
extension
blocks as defined below.- performance
Counters List<GetData Collection Rule Data Source Performance Counter> One or more
performance_counter
blocks as defined below.- syslogs
List<Get
Data Collection Rule Data Source Syslog> One or more
syslog
blocks as defined below.- windows
Event List<GetLogs Data Collection Rule Data Source Windows Event Log> One or more
windows_event_log
blocks as defined below.
- extensions
Get
Data Collection Rule Data Source Extension[] One or more
extension
blocks as defined below.- performance
Counters GetData Collection Rule Data Source Performance Counter[] One or more
performance_counter
blocks as defined below.- syslogs
Get
Data Collection Rule Data Source Syslog[] One or more
syslog
blocks as defined below.- windows
Event GetLogs Data Collection Rule Data Source Windows Event Log[] One or more
windows_event_log
blocks as defined below.
- extensions
Sequence[Get
Data Collection Rule Data Source Extension] One or more
extension
blocks as defined below.- performance_
counters Sequence[GetData Collection Rule Data Source Performance Counter] One or more
performance_counter
blocks as defined below.- syslogs
Sequence[Get
Data Collection Rule Data Source Syslog] One or more
syslog
blocks as defined below.- windows_
event_ Sequence[Getlogs Data Collection Rule Data Source Windows Event Log] One or more
windows_event_log
blocks as defined below.
- extensions List<Property Map>
One or more
extension
blocks as defined below.- performance
Counters List<Property Map> One or more
performance_counter
blocks as defined below.- syslogs List<Property Map>
One or more
syslog
blocks as defined below.- windows
Event List<Property Map>Logs One or more
windows_event_log
blocks as defined below.
GetDataCollectionRuleDataSourceExtension
- Extension
Json string A JSON String which specifies the extension setting.
- Extension
Name string The name of the VM extension.
- Input
Data 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
.- 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
,andMicrosoft-WindowsEvent
.
- Extension
Json string A JSON String which specifies the extension setting.
- Extension
Name string The name of the VM extension.
- Input
Data []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
.- 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
,andMicrosoft-WindowsEvent
.
- extension
Json String A JSON String which specifies the extension setting.
- extension
Name String The name of the VM extension.
- input
Data 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
.- 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
,andMicrosoft-WindowsEvent
.
- extension
Json string A JSON String which specifies the extension setting.
- extension
Name string The name of the VM extension.
- input
Data 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
.- 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
,andMicrosoft-WindowsEvent
.
- extension_
json str A JSON String which specifies the extension setting.
- extension_
name str The name of the VM extension.
- 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
.- 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
,andMicrosoft-WindowsEvent
.
- extension
Json String A JSON String which specifies the extension setting.
- extension
Name String The name of the VM extension.
- input
Data 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
.- 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
,andMicrosoft-WindowsEvent
.
GetDataCollectionRuleDataSourcePerformanceCounter
- Counter
Specifiers 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 commandtypeperf
.- Name string
Specifies the name of the Data Collection Rule.
- Sampling
Frequency intIn Seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-WindowsEvent
.
- Counter
Specifiers []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 commandtypeperf
.- Name string
Specifies the name of the Data Collection Rule.
- Sampling
Frequency intIn Seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-WindowsEvent
.
- counter
Specifiers 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 commandtypeperf
.- name String
Specifies the name of the Data Collection Rule.
- sampling
Frequency IntegerIn Seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-WindowsEvent
.
- counter
Specifiers 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 commandtypeperf
.- name string
Specifies the name of the Data Collection Rule.
- sampling
Frequency numberIn Seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-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 commandtypeperf
.- name str
Specifies the name of the Data Collection Rule.
- sampling_
frequency_ intin_ seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-WindowsEvent
.
- counter
Specifiers 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 commandtypeperf
.- name String
Specifies the name of the Data Collection Rule.
- sampling
Frequency NumberIn Seconds The number of seconds between consecutive counter measurements (samples). The value should be integer between
1
and300
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
,andMicrosoft-WindowsEvent
.
GetDataCollectionRuleDataSourceSyslog
- Facility
Names List<string> Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,authpriv
,cron
,daemon
,kern
,lpr
,mail
,mark
,news
,syslog
,user
,uucp
,local0
,local1
,local2
,local3
,local4
,local5
,local6
,local7
,and*
.- Log
Levels 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
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
,andMicrosoft-WindowsEvent
.
- Facility
Names []string Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,authpriv
,cron
,daemon
,kern
,lpr
,mail
,mark
,news
,syslog
,user
,uucp
,local0
,local1
,local2
,local3
,local4
,local5
,local6
,local7
,and*
.- Log
Levels []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
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
,andMicrosoft-WindowsEvent
.
- facility
Names List<String> Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,authpriv
,cron
,daemon
,kern
,lpr
,mail
,mark
,news
,syslog
,user
,uucp
,local0
,local1
,local2
,local3
,local4
,local5
,local6
,local7
,and*
.- log
Levels 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
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
,andMicrosoft-WindowsEvent
.
- facility
Names string[] Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,authpriv
,cron
,daemon
,kern
,lpr
,mail
,mark
,news
,syslog
,user
,uucp
,local0
,local1
,local2
,local3
,local4
,local5
,local6
,local7
,and*
.- log
Levels 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
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
,andMicrosoft-WindowsEvent
.
- facility_
names Sequence[str] Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,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 areDebug
,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
,andMicrosoft-WindowsEvent
.
- facility
Names List<String> Specifies a list of facility names. Use a wildcard
*
to collect logs for all facility names. Possible values areauth
,authpriv
,cron
,daemon
,kern
,lpr
,mail
,mark
,news
,syslog
,user
,uucp
,local0
,local1
,local2
,local3
,local4
,local5
,local6
,local7
,and*
.- log
Levels 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
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
,andMicrosoft-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
,andMicrosoft-WindowsEvent
.- XPath
Queries 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
,andMicrosoft-WindowsEvent
.- XPath
Queries []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
,andMicrosoft-WindowsEvent
.- x
Path List<String>Queries 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
,andMicrosoft-WindowsEvent
.- x
Path string[]Queries 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
,andMicrosoft-WindowsEvent
.- x_
path_ Sequence[str]queries 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
,andMicrosoft-WindowsEvent
.- x
Path List<String>Queries Specifies a list of Windows Event Log queries in XPath expression.
GetDataCollectionRuleDestination
- Azure
Monitor List<GetMetrics Data Collection Rule Destination Azure Monitor Metric> A
azure_monitor_metrics
block as defined above.- Log
Analytics List<GetData Collection Rule Destination Log Analytic> One or more
log_analytics
blocks as defined below.
- Azure
Monitor []GetMetrics Data Collection Rule Destination Azure Monitor Metric A
azure_monitor_metrics
block as defined above.- Log
Analytics []GetData Collection Rule Destination Log Analytic One or more
log_analytics
blocks as defined below.
- azure
Monitor List<GetMetrics Data Collection Rule Destination Azure Monitor Metric> A
azure_monitor_metrics
block as defined above.- log
Analytics List<GetData Collection Rule Destination Log Analytic> One or more
log_analytics
blocks as defined below.
- azure
Monitor GetMetrics Data Collection Rule Destination Azure Monitor Metric[] A
azure_monitor_metrics
block as defined above.- log
Analytics GetData Collection Rule Destination Log Analytic[] One or more
log_analytics
blocks as defined below.
- azure_
monitor_ Sequence[Getmetrics Data Collection Rule Destination Azure Monitor Metric] A
azure_monitor_metrics
block as defined above.- log_
analytics Sequence[GetData Collection Rule Destination Log Analytic] One or more
log_analytics
blocks as defined below.
- azure
Monitor List<Property Map>Metrics A
azure_monitor_metrics
block as defined above.- log
Analytics 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.
- Workspace
Resource stringId The ID of a Log Analytic Workspace resource.
- Name string
Specifies the name of the Data Collection Rule.
- Workspace
Resource stringId The ID of a Log Analytic Workspace resource.
- name String
Specifies the name of the Data Collection Rule.
- workspace
Resource StringId The ID of a Log Analytic Workspace resource.
- name string
Specifies the name of the Data Collection Rule.
- workspace
Resource stringId The ID of a Log Analytic Workspace resource.
- name str
Specifies the name of the Data Collection Rule.
- workspace_
resource_ strid The ID of a Log Analytic Workspace resource.
- name String
Specifies the name of the Data Collection Rule.
- workspace
Resource StringId The ID of a Log Analytic Workspace resource.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.