We recommend using Azure Native.
Manages a Custom Log Table in a Log Analytics (formally Operational Insights) Workspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
sku: "PerGB2018",
retentionInDays: 30,
});
const exampleWorkspaceTableCustomLog = new azure.loganalytics.WorkspaceTableCustomLog("example", {
name: "example_CL",
workspaceId: exampleAnalyticsWorkspace.id,
columns: [{
name: "TimeGenerated",
type: "datetime",
}],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
name="example",
location=example.location,
resource_group_name=example.name,
sku="PerGB2018",
retention_in_days=30)
example_workspace_table_custom_log = azure.loganalytics.WorkspaceTableCustomLog("example",
name="example_CL",
workspace_id=example_analytics_workspace.id,
columns=[{
"name": "TimeGenerated",
"type": "datetime",
}])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/loganalytics"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: pulumi.String("PerGB2018"),
RetentionInDays: pulumi.Int(30),
})
if err != nil {
return err
}
_, err = loganalytics.NewWorkspaceTableCustomLog(ctx, "example", &loganalytics.WorkspaceTableCustomLogArgs{
Name: pulumi.String("example_CL"),
WorkspaceId: exampleAnalyticsWorkspace.ID(),
Columns: loganalytics.WorkspaceTableCustomLogColumnArray{
&loganalytics.WorkspaceTableCustomLogColumnArgs{
Name: pulumi.String("TimeGenerated"),
Type: pulumi.String("datetime"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = "PerGB2018",
RetentionInDays = 30,
});
var exampleWorkspaceTableCustomLog = new Azure.LogAnalytics.WorkspaceTableCustomLog("example", new()
{
Name = "example_CL",
WorkspaceId = exampleAnalyticsWorkspace.Id,
Columns = new[]
{
new Azure.LogAnalytics.Inputs.WorkspaceTableCustomLogColumnArgs
{
Name = "TimeGenerated",
Type = "datetime",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.loganalytics.WorkspaceTableCustomLog;
import com.pulumi.azure.loganalytics.WorkspaceTableCustomLogArgs;
import com.pulumi.azure.loganalytics.inputs.WorkspaceTableCustomLogColumnArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleWorkspaceTableCustomLog = new WorkspaceTableCustomLog("exampleWorkspaceTableCustomLog", WorkspaceTableCustomLogArgs.builder()
.name("example_CL")
.workspaceId(exampleAnalyticsWorkspace.id())
.columns(WorkspaceTableCustomLogColumnArgs.builder()
.name("TimeGenerated")
.type("datetime")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
sku: PerGB2018
retentionInDays: 30
exampleWorkspaceTableCustomLog:
type: azure:loganalytics:WorkspaceTableCustomLog
name: example
properties:
name: example_CL
workspaceId: ${exampleAnalyticsWorkspace.id}
columns:
- name: TimeGenerated
type: datetime
API Providers
This resource uses the following Azure API Providers:
Microsoft.OperationalInsights- 2022-10-01
Create WorkspaceTableCustomLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceTableCustomLog(name: string, args: WorkspaceTableCustomLogArgs, opts?: CustomResourceOptions);@overload
def WorkspaceTableCustomLog(resource_name: str,
args: WorkspaceTableCustomLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceTableCustomLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
columns: Optional[Sequence[WorkspaceTableCustomLogColumnArgs]] = None,
workspace_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
plan: Optional[str] = None,
retention_in_days: Optional[int] = None,
total_retention_in_days: Optional[int] = None)func NewWorkspaceTableCustomLog(ctx *Context, name string, args WorkspaceTableCustomLogArgs, opts ...ResourceOption) (*WorkspaceTableCustomLog, error)public WorkspaceTableCustomLog(string name, WorkspaceTableCustomLogArgs args, CustomResourceOptions? opts = null)
public WorkspaceTableCustomLog(String name, WorkspaceTableCustomLogArgs args)
public WorkspaceTableCustomLog(String name, WorkspaceTableCustomLogArgs args, CustomResourceOptions options)
type: azure:loganalytics:WorkspaceTableCustomLog
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 WorkspaceTableCustomLogArgs
- 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 WorkspaceTableCustomLogArgs
- 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 WorkspaceTableCustomLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceTableCustomLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceTableCustomLogArgs
- 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 workspaceTableCustomLogResource = new Azure.LogAnalytics.WorkspaceTableCustomLog("workspaceTableCustomLogResource", new()
{
Columns = new[]
{
new Azure.LogAnalytics.Inputs.WorkspaceTableCustomLogColumnArgs
{
Name = "string",
Type = "string",
Description = "string",
DisplayName = "string",
},
},
WorkspaceId = "string",
Description = "string",
DisplayName = "string",
Name = "string",
Plan = "string",
RetentionInDays = 0,
TotalRetentionInDays = 0,
});
example, err := loganalytics.NewWorkspaceTableCustomLog(ctx, "workspaceTableCustomLogResource", &loganalytics.WorkspaceTableCustomLogArgs{
Columns: loganalytics.WorkspaceTableCustomLogColumnArray{
&loganalytics.WorkspaceTableCustomLogColumnArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
},
WorkspaceId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Name: pulumi.String("string"),
Plan: pulumi.String("string"),
RetentionInDays: pulumi.Int(0),
TotalRetentionInDays: pulumi.Int(0),
})
var workspaceTableCustomLogResource = new WorkspaceTableCustomLog("workspaceTableCustomLogResource", WorkspaceTableCustomLogArgs.builder()
.columns(WorkspaceTableCustomLogColumnArgs.builder()
.name("string")
.type("string")
.description("string")
.displayName("string")
.build())
.workspaceId("string")
.description("string")
.displayName("string")
.name("string")
.plan("string")
.retentionInDays(0)
.totalRetentionInDays(0)
.build());
workspace_table_custom_log_resource = azure.loganalytics.WorkspaceTableCustomLog("workspaceTableCustomLogResource",
columns=[{
"name": "string",
"type": "string",
"description": "string",
"display_name": "string",
}],
workspace_id="string",
description="string",
display_name="string",
name="string",
plan="string",
retention_in_days=0,
total_retention_in_days=0)
const workspaceTableCustomLogResource = new azure.loganalytics.WorkspaceTableCustomLog("workspaceTableCustomLogResource", {
columns: [{
name: "string",
type: "string",
description: "string",
displayName: "string",
}],
workspaceId: "string",
description: "string",
displayName: "string",
name: "string",
plan: "string",
retentionInDays: 0,
totalRetentionInDays: 0,
});
type: azure:loganalytics:WorkspaceTableCustomLog
properties:
columns:
- description: string
displayName: string
name: string
type: string
description: string
displayName: string
name: string
plan: string
retentionInDays: 0
totalRetentionInDays: 0
workspaceId: string
WorkspaceTableCustomLog 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 WorkspaceTableCustomLog resource accepts the following input properties:
- Columns
List<Workspace
Table Custom Log Column> - One or more
columnblocks as defined below. - Workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- Retention
In intDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- Total
Retention intIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
- Columns
[]Workspace
Table Custom Log Column Args - One or more
columnblocks as defined below. - Workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- Retention
In intDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- Total
Retention intIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
- columns
List<Workspace
Table Custom Log Column> - One or more
columnblocks as defined below. - workspace
Id String - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan String
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In IntegerDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- total
Retention IntegerIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
- columns
Workspace
Table Custom Log Column[] - One or more
columnblocks as defined below. - workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- description string
- The description of the table.
- display
Name string - The display name of the table.
- name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In numberDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- total
Retention numberIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
- columns
Sequence[Workspace
Table Custom Log Column Args] - One or more
columnblocks as defined below. - workspace_
id str - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- description str
- The description of the table.
- display_
name str - The display name of the table.
- name str
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan str
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention_
in_ intdays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- total_
retention_ intin_ days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
- columns List<Property Map>
- One or more
columnblocks as defined below. - workspace
Id String - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan String
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In NumberDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- total
Retention NumberIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceTableCustomLog resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Solutions List<string>
- A list of solutions associated with the table.
- Standard
Columns List<WorkspaceTable Custom Log Standard Column> - One or more
standard_columnblocks as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Solutions []string
- A list of solutions associated with the table.
- Standard
Columns []WorkspaceTable Custom Log Standard Column - One or more
standard_columnblocks as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- solutions List<String>
- A list of solutions associated with the table.
- standard
Columns List<WorkspaceTable Custom Log Standard Column> - One or more
standard_columnblocks as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- solutions string[]
- A list of solutions associated with the table.
- standard
Columns WorkspaceTable Custom Log Standard Column[] - One or more
standard_columnblocks as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- solutions Sequence[str]
- A list of solutions associated with the table.
- standard_
columns Sequence[WorkspaceTable Custom Log Standard Column] - One or more
standard_columnblocks as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- solutions List<String>
- A list of solutions associated with the table.
- standard
Columns List<Property Map> - One or more
standard_columnblocks as defined below.
Look up Existing WorkspaceTableCustomLog Resource
Get an existing WorkspaceTableCustomLog 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?: WorkspaceTableCustomLogState, opts?: CustomResourceOptions): WorkspaceTableCustomLog@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
columns: Optional[Sequence[WorkspaceTableCustomLogColumnArgs]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
plan: Optional[str] = None,
retention_in_days: Optional[int] = None,
solutions: Optional[Sequence[str]] = None,
standard_columns: Optional[Sequence[WorkspaceTableCustomLogStandardColumnArgs]] = None,
total_retention_in_days: Optional[int] = None,
workspace_id: Optional[str] = None) -> WorkspaceTableCustomLogfunc GetWorkspaceTableCustomLog(ctx *Context, name string, id IDInput, state *WorkspaceTableCustomLogState, opts ...ResourceOption) (*WorkspaceTableCustomLog, error)public static WorkspaceTableCustomLog Get(string name, Input<string> id, WorkspaceTableCustomLogState? state, CustomResourceOptions? opts = null)public static WorkspaceTableCustomLog get(String name, Output<String> id, WorkspaceTableCustomLogState state, CustomResourceOptions options)resources: _: type: azure:loganalytics:WorkspaceTableCustomLog get: id: ${id}- 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.
- Columns
List<Workspace
Table Custom Log Column> - One or more
columnblocks as defined below. - Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- Retention
In intDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- Solutions List<string>
- A list of solutions associated with the table.
- Standard
Columns List<WorkspaceTable Custom Log Standard Column> - One or more
standard_columnblocks as defined below. - Total
Retention intIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - Workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- Columns
[]Workspace
Table Custom Log Column Args - One or more
columnblocks as defined below. - Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- Retention
In intDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- Solutions []string
- A list of solutions associated with the table.
- Standard
Columns []WorkspaceTable Custom Log Standard Column Args - One or more
standard_columnblocks as defined below. - Total
Retention intIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - Workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- columns
List<Workspace
Table Custom Log Column> - One or more
columnblocks as defined below. - description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan String
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In IntegerDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- solutions List<String>
- A list of solutions associated with the table.
- standard
Columns List<WorkspaceTable Custom Log Standard Column> - One or more
standard_columnblocks as defined below. - total
Retention IntegerIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - workspace
Id String - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- columns
Workspace
Table Custom Log Column[] - One or more
columnblocks as defined below. - description string
- The description of the table.
- display
Name string - The display name of the table.
- name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan string
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In numberDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- solutions string[]
- A list of solutions associated with the table.
- standard
Columns WorkspaceTable Custom Log Standard Column[] - One or more
standard_columnblocks as defined below. - total
Retention numberIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - workspace
Id string - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- columns
Sequence[Workspace
Table Custom Log Column Args] - One or more
columnblocks as defined below. - description str
- The description of the table.
- display_
name str - The display name of the table.
- name str
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan str
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention_
in_ intdays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- solutions Sequence[str]
- A list of solutions associated with the table.
- standard_
columns Sequence[WorkspaceTable Custom Log Standard Column Args] - One or more
standard_columnblocks as defined below. - total_
retention_ intin_ days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - workspace_
id str - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
- columns List<Property Map>
- One or more
columnblocks as defined below. - description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- plan String
Specify the system how to handle and charge the logs ingested to the table. Possible values are
AnalyticsandBasic. Defaults toAnalytics.Note: Changing the table's
planis limited to once a week.- retention
In NumberDays The table's retention in days. Possible values range between
4and730.Note:
retention_in_dayscannot be set whenplanis set toBasicbecause the retention is fixed.- solutions List<String>
- A list of solutions associated with the table.
- standard
Columns List<Property Map> - One or more
standard_columnblocks as defined below. - total
Retention NumberIn Days - The table's total retention in days. Possible values range between
4and730; or1095,1460,1826,2191,2556,2922,3288,3653,4018, or4383. - workspace
Id String - The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
Supporting Types
WorkspaceTableCustomLogColumn, WorkspaceTableCustomLogColumnArgs
- Name string
- Specifies the name of the column.
- Type string
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - Description string
- The description of the column.
- Display
Name string - The display name of the column.
- Name string
- Specifies the name of the column.
- Type string
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - Description string
- The description of the column.
- Display
Name string - The display name of the column.
- name String
- Specifies the name of the column.
- type String
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - description String
- The description of the column.
- display
Name String - The display name of the column.
- name string
- Specifies the name of the column.
- type string
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - description string
- The description of the column.
- display
Name string - The display name of the column.
- name str
- Specifies the name of the column.
- type str
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - description str
- The description of the column.
- display_
name str - The display name of the column.
- name String
- Specifies the name of the column.
- type String
- The data type of the column. Possible values are
boolean,datetime,dynamic,guid,int,long,real, andstring. - description String
- The description of the column.
- display
Name String - The display name of the column.
WorkspaceTableCustomLogStandardColumn, WorkspaceTableCustomLogStandardColumnArgs
- Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Type string
- The data type of the standard column.
- Description string
- The description of the table.
- Display
Name string - The display name of the table.
- Name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- Type string
- The data type of the standard column.
- description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- type String
- The data type of the standard column.
- description string
- The description of the table.
- display
Name string - The display name of the table.
- name string
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- type string
- The data type of the standard column.
- description str
- The description of the table.
- display_
name str - The display name of the table.
- name str
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- type str
- The data type of the standard column.
- description String
- The description of the table.
- display
Name String - The display name of the table.
- name String
Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created.
Note:
namemust end with_CL.- type String
- The data type of the standard column.
Import
Log Analytics Workspace Table Custom Logs can be imported using the resource id, e.g.
$ pulumi import azure:loganalytics/workspaceTableCustomLog:WorkspaceTableCustomLog example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/tables/table1
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.
