Class DataSourceWindowsEvent
Manages a Log Analytics Windows Event DataSource.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", new Azure.OperationalInsights.AnalyticsWorkspaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "PerGB2018",
});
var exampleDataSourceWindowsEvent = new Azure.LogAnalytics.DataSourceWindowsEvent("exampleDataSourceWindowsEvent", new Azure.LogAnalytics.DataSourceWindowsEventArgs
{
ResourceGroupName = exampleResourceGroup.Name,
WorkspaceName = exampleAnalyticsWorkspace.Name,
EventLogName = "Application",
EventTypes =
{
"error",
},
});
}
}
Inherited Members
Namespace: Pulumi.Azure.LogAnalytics
Assembly: Pulumi.Azure.dll
Syntax
public class DataSourceWindowsEvent : CustomResource
Constructors
View SourceDataSourceWindowsEvent(String, DataSourceWindowsEventArgs, CustomResourceOptions)
Create a DataSourceWindowsEvent resource with the given unique name, arguments, and options.
Declaration
public DataSourceWindowsEvent(string name, DataSourceWindowsEventArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DataSourceWindowsEventArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEventLogName
Specifies the name of the Windows Event Log to collect events from.
Declaration
public Output<string> EventLogName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EventTypes
Specifies an array of event types applied to the specified event log. Possible values include error, warning and information.
Declaration
public Output<ImmutableArray<string>> EventTypes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WorkspaceName
The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
Declaration
public Output<string> WorkspaceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, DataSourceWindowsEventState, CustomResourceOptions)
Get an existing DataSourceWindowsEvent resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static DataSourceWindowsEvent Get(string name, Input<string> id, DataSourceWindowsEventState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DataSourceWindowsEventState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| DataSourceWindowsEvent |