1. Packages
  2. Azure Classic
  3. API Docs
  4. loganalytics
  5. WorkspaceTableCustomLog

We recommend using Azure Native.

Azure v6.31.0 published on Monday, Dec 29, 2025 by Pulumi
azure logo

We recommend using Azure Native.

Azure v6.31.0 published on Monday, Dec 29, 2025 by Pulumi

    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<WorkspaceTableCustomLogColumn>
    One or more column blocks as defined below.
    WorkspaceId 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.
    DisplayName 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: name must end with _CL.

    Plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    RetentionInDays int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    TotalRetentionInDays int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    Columns []WorkspaceTableCustomLogColumnArgs
    One or more column blocks as defined below.
    WorkspaceId 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.
    DisplayName 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: name must end with _CL.

    Plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    RetentionInDays int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    TotalRetentionInDays int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    columns List<WorkspaceTableCustomLogColumn>
    One or more column blocks as defined below.
    workspaceId 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.
    displayName 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: name must end with _CL.

    plan String

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays Integer

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    totalRetentionInDays Integer
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    columns WorkspaceTableCustomLogColumn[]
    One or more column blocks as defined below.
    workspaceId 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.
    displayName 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: name must end with _CL.

    plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays number

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    totalRetentionInDays number
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    columns Sequence[WorkspaceTableCustomLogColumnArgs]
    One or more column blocks 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: name must end with _CL.

    plan str

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retention_in_days int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    total_retention_in_days int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    columns List<Property Map>
    One or more column blocks as defined below.
    workspaceId 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.
    displayName 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: name must end with _CL.

    plan String

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays Number

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    totalRetentionInDays Number
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.

    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.
    StandardColumns List<WorkspaceTableCustomLogStandardColumn>
    One or more standard_column blocks as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Solutions []string
    A list of solutions associated with the table.
    StandardColumns []WorkspaceTableCustomLogStandardColumn
    One or more standard_column blocks 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.
    standardColumns List<WorkspaceTableCustomLogStandardColumn>
    One or more standard_column blocks as defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    solutions string[]
    A list of solutions associated with the table.
    standardColumns WorkspaceTableCustomLogStandardColumn[]
    One or more standard_column blocks 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[WorkspaceTableCustomLogStandardColumn]
    One or more standard_column blocks 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.
    standardColumns List<Property Map>
    One or more standard_column blocks 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) -> WorkspaceTableCustomLog
    func 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.
    The following state arguments are supported:
    Columns List<WorkspaceTableCustomLogColumn>
    One or more column blocks as defined below.
    Description string
    The description of the table.
    DisplayName 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: name must end with _CL.

    Plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    RetentionInDays int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    Solutions List<string>
    A list of solutions associated with the table.
    StandardColumns List<WorkspaceTableCustomLogStandardColumn>
    One or more standard_column blocks as defined below.
    TotalRetentionInDays int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    WorkspaceId string
    The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
    Columns []WorkspaceTableCustomLogColumnArgs
    One or more column blocks as defined below.
    Description string
    The description of the table.
    DisplayName 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: name must end with _CL.

    Plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    RetentionInDays int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    Solutions []string
    A list of solutions associated with the table.
    StandardColumns []WorkspaceTableCustomLogStandardColumnArgs
    One or more standard_column blocks as defined below.
    TotalRetentionInDays int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    WorkspaceId string
    The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
    columns List<WorkspaceTableCustomLogColumn>
    One or more column blocks as defined below.
    description String
    The description of the table.
    displayName 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: name must end with _CL.

    plan String

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays Integer

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    solutions List<String>
    A list of solutions associated with the table.
    standardColumns List<WorkspaceTableCustomLogStandardColumn>
    One or more standard_column blocks as defined below.
    totalRetentionInDays Integer
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    workspaceId String
    The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
    columns WorkspaceTableCustomLogColumn[]
    One or more column blocks as defined below.
    description string
    The description of the table.
    displayName 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: name must end with _CL.

    plan string

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays number

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    solutions string[]
    A list of solutions associated with the table.
    standardColumns WorkspaceTableCustomLogStandardColumn[]
    One or more standard_column blocks as defined below.
    totalRetentionInDays number
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    workspaceId string
    The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created.
    columns Sequence[WorkspaceTableCustomLogColumnArgs]
    One or more column blocks 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: name must end with _CL.

    plan str

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retention_in_days int

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    solutions Sequence[str]
    A list of solutions associated with the table.
    standard_columns Sequence[WorkspaceTableCustomLogStandardColumnArgs]
    One or more standard_column blocks as defined below.
    total_retention_in_days int
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    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 column blocks as defined below.
    description String
    The description of the table.
    displayName 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: name must end with _CL.

    plan String

    Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

    Note: Changing the table's plan is limited to once a week.

    retentionInDays Number

    The table's retention in days. Possible values range between 4 and 730.

    Note: retention_in_days cannot be set when plan is set to Basic because the retention is fixed.

    solutions List<String>
    A list of solutions associated with the table.
    standardColumns List<Property Map>
    One or more standard_column blocks as defined below.
    totalRetentionInDays Number
    The table's total retention in days. Possible values range between 4 and 730; or 1095, 1460, 1826, 2191, 2556, 2922, 3288, 3653, 4018, or 4383.
    workspaceId 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, and string.
    Description string
    The description of the column.
    DisplayName 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, and string.
    Description string
    The description of the column.
    DisplayName 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, and string.
    description String
    The description of the column.
    displayName 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, and string.
    description string
    The description of the column.
    displayName 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, and string.
    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, and string.
    description String
    The description of the column.
    displayName String
    The display name of the column.

    WorkspaceTableCustomLogStandardColumn, WorkspaceTableCustomLogStandardColumnArgs

    Description string
    The description of the table.
    DisplayName 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: name must end with _CL.

    Type string
    The data type of the standard column.
    Description string
    The description of the table.
    DisplayName 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: name must end with _CL.

    Type string
    The data type of the standard column.
    description String
    The description of the table.
    displayName 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: name must end with _CL.

    type String
    The data type of the standard column.
    description string
    The description of the table.
    displayName 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: name must 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: name must end with _CL.

    type str
    The data type of the standard column.
    description String
    The description of the table.
    displayName 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: name must 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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.31.0 published on Monday, Dec 29, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate