1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. MonitorLogsStream
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Manages a Linode Monitor Logs Stream. For more information, see the Linode APIv4 docs. (Note: v4beta only.)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const key = new linode.ObjectStorageKey("key", {
        label: "my-logs-key",
        regions: ["us-east"],
    });
    const bucket = new linode.ObjectStorageBucket("bucket", {
        region: "us-east",
        label: "my-logs-bucket",
        accessKey: key.accessKey,
        secretKey: key.secretKey,
    });
    const destination = new linode.MonitorLogsDestination("destination", {
        label: "my-logs-destination",
        type: "akamai_object_storage",
        akamaiObjectStorageDetails: {
            accessKeyId: key.accessKey,
            accessKeySecret: key.secretKey,
            bucketName: bucket.label,
            host: bucket.hostname,
        },
    });
    const example = new linode.MonitorLogsStream("example", {
        label: "my-audit-logs-stream",
        type: "audit_logs",
        destinations: [destination.id.apply(x =>Number(x))],
    });
    
    import pulumi
    import pulumi_linode as linode
    
    key = linode.ObjectStorageKey("key",
        label="my-logs-key",
        regions=["us-east"])
    bucket = linode.ObjectStorageBucket("bucket",
        region="us-east",
        label="my-logs-bucket",
        access_key=key.access_key,
        secret_key=key.secret_key)
    destination = linode.MonitorLogsDestination("destination",
        label="my-logs-destination",
        type="akamai_object_storage",
        akamai_object_storage_details={
            "access_key_id": key.access_key,
            "access_key_secret": key.secret_key,
            "bucket_name": bucket.label,
            "host": bucket.hostname,
        })
    example = linode.MonitorLogsStream("example",
        label="my-audit-logs-stream",
        type="audit_logs",
        destinations=[destination.id.apply(lambda x: int(x))])
    
    package main
    
    import (
    	"strconv"
    
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		key, err := linode.NewObjectStorageKey(ctx, "key", &linode.ObjectStorageKeyArgs{
    			Label: pulumi.String("my-logs-key"),
    			Regions: pulumi.StringArray{
    				pulumi.String("us-east"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		bucket, err := linode.NewObjectStorageBucket(ctx, "bucket", &linode.ObjectStorageBucketArgs{
    			Region:    pulumi.String("us-east"),
    			Label:     pulumi.String("my-logs-bucket"),
    			AccessKey: key.AccessKey,
    			SecretKey: key.SecretKey,
    		})
    		if err != nil {
    			return err
    		}
    		destination, err := linode.NewMonitorLogsDestination(ctx, "destination", &linode.MonitorLogsDestinationArgs{
    			Label: pulumi.String("my-logs-destination"),
    			Type:  pulumi.String("akamai_object_storage"),
    			AkamaiObjectStorageDetails: &linode.MonitorLogsDestinationAkamaiObjectStorageDetailsArgs{
    				AccessKeyId:     key.AccessKey,
    				AccessKeySecret: key.SecretKey,
    				BucketName:      bucket.Label,
    				Host:            bucket.Hostname,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewMonitorLogsStream(ctx, "example", &linode.MonitorLogsStreamArgs{
    			Label: pulumi.String("my-audit-logs-stream"),
    			Type:  pulumi.String("audit_logs"),
    			Destinations: pulumi.IntArray{
    				destination.ID().ToIDOutput().ApplyT(func(id pulumi.ID) (int, error) { return strconv.Atoi(string(id)) }).(pulumi.IntOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var key = new Linode.ObjectStorageKey("key", new()
        {
            Label = "my-logs-key",
            Regions = new[]
            {
                "us-east",
            },
        });
    
        var bucket = new Linode.ObjectStorageBucket("bucket", new()
        {
            Region = "us-east",
            Label = "my-logs-bucket",
            AccessKey = key.AccessKey,
            SecretKey = key.SecretKey,
        });
    
        var destination = new Linode.MonitorLogsDestination("destination", new()
        {
            Label = "my-logs-destination",
            Type = "akamai_object_storage",
            AkamaiObjectStorageDetails = new Linode.Inputs.MonitorLogsDestinationAkamaiObjectStorageDetailsArgs
            {
                AccessKeyId = key.AccessKey,
                AccessKeySecret = key.SecretKey,
                BucketName = bucket.Label,
                Host = bucket.Hostname,
            },
        });
    
        var example = new Linode.MonitorLogsStream("example", new()
        {
            Label = "my-audit-logs-stream",
            Type = "audit_logs",
            Destinations = new[]
            {
                destination.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.ObjectStorageKey;
    import com.pulumi.linode.ObjectStorageKeyArgs;
    import com.pulumi.linode.ObjectStorageBucket;
    import com.pulumi.linode.ObjectStorageBucketArgs;
    import com.pulumi.linode.MonitorLogsDestination;
    import com.pulumi.linode.MonitorLogsDestinationArgs;
    import com.pulumi.linode.inputs.MonitorLogsDestinationAkamaiObjectStorageDetailsArgs;
    import com.pulumi.linode.MonitorLogsStream;
    import com.pulumi.linode.MonitorLogsStreamArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 key = new ObjectStorageKey("key", ObjectStorageKeyArgs.builder()
                .label("my-logs-key")
                .regions("us-east")
                .build());
    
            var bucket = new ObjectStorageBucket("bucket", ObjectStorageBucketArgs.builder()
                .region("us-east")
                .label("my-logs-bucket")
                .accessKey(key.accessKey())
                .secretKey(key.secretKey())
                .build());
    
            var destination = new MonitorLogsDestination("destination", MonitorLogsDestinationArgs.builder()
                .label("my-logs-destination")
                .type("akamai_object_storage")
                .akamaiObjectStorageDetails(MonitorLogsDestinationAkamaiObjectStorageDetailsArgs.builder()
                    .accessKeyId(key.accessKey())
                    .accessKeySecret(key.secretKey())
                    .bucketName(bucket.label())
                    .host(bucket.hostname())
                    .build())
                .build());
    
            var example = new MonitorLogsStream("example", MonitorLogsStreamArgs.builder()
                .label("my-audit-logs-stream")
                .type("audit_logs")
                .destinations(destination.id())
                .build());
    
        }
    }
    
    resources:
      key:
        type: linode:ObjectStorageKey
        properties:
          label: my-logs-key
          regions:
            - us-east
      bucket:
        type: linode:ObjectStorageBucket
        properties:
          region: us-east
          label: my-logs-bucket
          accessKey: ${key.accessKey}
          secretKey: ${key.secretKey}
      destination:
        type: linode:MonitorLogsDestination
        properties:
          label: my-logs-destination
          type: akamai_object_storage
          akamaiObjectStorageDetails:
            accessKeyId: ${key.accessKey}
            accessKeySecret: ${key.secretKey}
            bucketName: ${bucket.label}
            host: ${bucket.hostname}
      example:
        type: linode:MonitorLogsStream
        properties:
          label: my-audit-logs-stream
          type: audit_logs
          destinations:
            - ${destination.id}
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    resource "linode_objectstoragekey" "key" {
      label   = "my-logs-key"
      regions = ["us-east"]
    }
    resource "linode_objectstoragebucket" "bucket" {
      region     = "us-east"
      label      = "my-logs-bucket"
      access_key = linode_objectstoragekey.key.access_key
      secret_key = linode_objectstoragekey.key.secret_key
    }
    resource "linode_monitorlogsdestination" "destination" {
      label = "my-logs-destination"
      type  = "akamai_object_storage"
      akamai_object_storage_details = {
        access_key_id     = linode_objectstoragekey.key.access_key
        access_key_secret = linode_objectstoragekey.key.secret_key
        bucket_name       = linode_objectstoragebucket.bucket.label
        host              = linode_objectstoragebucket.bucket.hostname
      }
    }
    resource "linode_monitorlogsstream" "example" {
      label        = "my-audit-logs-stream"
      type         = "audit_logs"
      destinations = [linode_monitorlogsdestination.destination.id]
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const lkeExample = new linode.MonitorLogsStream("lke_example", {
        label: "my-lke-stream",
        type: "lke_audit_logs",
        destinations: [destination.id],
        details: {
            clusterIds: [
                12345,
                67890,
            ],
            isAutoAddAllClustersEnabled: false,
        },
    });
    
    import pulumi
    import pulumi_linode as linode
    
    lke_example = linode.MonitorLogsStream("lke_example",
        label="my-lke-stream",
        type="lke_audit_logs",
        destinations=[destination["id"]],
        details={
            "cluster_ids": [
                12345,
                67890,
            ],
            "is_auto_add_all_clusters_enabled": False,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.NewMonitorLogsStream(ctx, "lke_example", &linode.MonitorLogsStreamArgs{
    			Label: pulumi.String("my-lke-stream"),
    			Type:  pulumi.String("lke_audit_logs"),
    			Destinations: pulumi.IntArray{
    				destination.Id,
    			},
    			Details: &linode.MonitorLogsStreamDetailsArgs{
    				ClusterIds: pulumi.IntArray{
    					pulumi.Int(12345),
    					pulumi.Int(67890),
    				},
    				IsAutoAddAllClustersEnabled: pulumi.Bool(false),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var lkeExample = new Linode.MonitorLogsStream("lke_example", new()
        {
            Label = "my-lke-stream",
            Type = "lke_audit_logs",
            Destinations = new[]
            {
                destination.Id,
            },
            Details = new Linode.Inputs.MonitorLogsStreamDetailsArgs
            {
                ClusterIds = new[]
                {
                    12345,
                    67890,
                },
                IsAutoAddAllClustersEnabled = false,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.MonitorLogsStream;
    import com.pulumi.linode.MonitorLogsStreamArgs;
    import com.pulumi.linode.inputs.MonitorLogsStreamDetailsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 lkeExample = new MonitorLogsStream("lkeExample", MonitorLogsStreamArgs.builder()
                .label("my-lke-stream")
                .type("lke_audit_logs")
                .destinations(destination.id())
                .details(MonitorLogsStreamDetailsArgs.builder()
                    .clusterIds(                
                        12345,
                        67890)
                    .isAutoAddAllClustersEnabled(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      lkeExample:
        type: linode:MonitorLogsStream
        name: lke_example
        properties:
          label: my-lke-stream
          type: lke_audit_logs
          destinations:
            - ${destination.id}
          details:
            clusterIds:
              - 12345
              - 67890
            isAutoAddAllClustersEnabled: false
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    resource "linode_monitorlogsstream" "lke_example" {
      label        = "my-lke-stream"
      type         = "lke_audit_logs"
      destinations = [destination.id]
      details = {
        cluster_ids                      = [12345, 67890]
        is_auto_add_all_clusters_enabled = false
      }
    }
    

    Create MonitorLogsStream Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitorLogsStream(name: string, args: MonitorLogsStreamArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorLogsStream(resource_name: str,
                          args: MonitorLogsStreamArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorLogsStream(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          destinations: Optional[Sequence[int]] = None,
                          label: Optional[str] = None,
                          type: Optional[str] = None,
                          details: Optional[MonitorLogsStreamDetailsArgs] = None,
                          status: Optional[str] = None)
    func NewMonitorLogsStream(ctx *Context, name string, args MonitorLogsStreamArgs, opts ...ResourceOption) (*MonitorLogsStream, error)
    public MonitorLogsStream(string name, MonitorLogsStreamArgs args, CustomResourceOptions? opts = null)
    public MonitorLogsStream(String name, MonitorLogsStreamArgs args)
    public MonitorLogsStream(String name, MonitorLogsStreamArgs args, CustomResourceOptions options)
    
    type: linode:MonitorLogsStream
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "linode_monitor_logs_stream" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MonitorLogsStreamArgs
    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 MonitorLogsStreamArgs
    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 MonitorLogsStreamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorLogsStreamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorLogsStreamArgs
    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 monitorLogsStreamResource = new Linode.MonitorLogsStream("monitorLogsStreamResource", new()
    {
        Destinations = new[]
        {
            0,
        },
        Label = "string",
        Type = "string",
        Details = new Linode.Inputs.MonitorLogsStreamDetailsArgs
        {
            ClusterIds = new[]
            {
                0,
            },
            IsAutoAddAllClustersEnabled = false,
        },
        Status = "string",
    });
    
    example, err := linode.NewMonitorLogsStream(ctx, "monitorLogsStreamResource", &linode.MonitorLogsStreamArgs{
    	Destinations: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Label: pulumi.String("string"),
    	Type:  pulumi.String("string"),
    	Details: &linode.MonitorLogsStreamDetailsArgs{
    		ClusterIds: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		IsAutoAddAllClustersEnabled: pulumi.Bool(false),
    	},
    	Status: pulumi.String("string"),
    })
    
    resource "linode_monitor_logs_stream" "monitorLogsStreamResource" {
      lifecycle {
        create_before_destroy = true
      }
      destinations = [0]
      label        = "string"
      type         = "string"
      details = {
        cluster_ids                      = [0]
        is_auto_add_all_clusters_enabled = false
      }
      status = "string"
    }
    
    var monitorLogsStreamResource = new MonitorLogsStream("monitorLogsStreamResource", MonitorLogsStreamArgs.builder()
        .destinations(0)
        .label("string")
        .type("string")
        .details(MonitorLogsStreamDetailsArgs.builder()
            .clusterIds(0)
            .isAutoAddAllClustersEnabled(false)
            .build())
        .status("string")
        .build());
    
    monitor_logs_stream_resource = linode.MonitorLogsStream("monitorLogsStreamResource",
        destinations=[0],
        label="string",
        type="string",
        details={
            "cluster_ids": [0],
            "is_auto_add_all_clusters_enabled": False,
        },
        status="string")
    
    const monitorLogsStreamResource = new linode.MonitorLogsStream("monitorLogsStreamResource", {
        destinations: [0],
        label: "string",
        type: "string",
        details: {
            clusterIds: [0],
            isAutoAddAllClustersEnabled: false,
        },
        status: "string",
    });
    
    type: linode:MonitorLogsStream
    properties:
        destinations:
            - 0
        details:
            clusterIds:
                - 0
            isAutoAddAllClustersEnabled: false
        label: string
        status: string
        type: string
    

    MonitorLogsStream 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 MonitorLogsStream resource accepts the following input properties:

    Destinations List<int>
    The list of logs destination IDs attached to this stream.
    Label string
    The label of the logs stream.
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    Status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    Destinations []int
    The list of logs destination IDs attached to this stream.
    Label string
    The label of the logs stream.
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Details MonitorLogsStreamDetailsArgs
    Additional configuration details. Only applies to lkeAuditLogs streams.
    Status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    destinations list(number)
    The list of logs destination IDs attached to this stream.
    label string
    The label of the logs stream.
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    details object
    Additional configuration details. Only applies to lkeAuditLogs streams.
    status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    destinations List<Integer>
    The list of logs destination IDs attached to this stream.
    label String
    The label of the logs stream.
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    status String
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    destinations number[]
    The list of logs destination IDs attached to this stream.
    label string
    The label of the logs stream.
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    destinations Sequence[int]
    The list of logs destination IDs attached to this stream.
    label str
    The label of the logs stream.
    type str
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    details MonitorLogsStreamDetailsArgs
    Additional configuration details. Only applies to lkeAuditLogs streams.
    status str
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    destinations List<Number>
    The list of logs destination IDs attached to this stream.
    label String
    The label of the logs stream.
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    details Property Map
    Additional configuration details. Only applies to lkeAuditLogs streams.
    status String
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitorLogsStream resource produces the following output properties:

    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    created_by string
    The user who created the logs stream.
    id string
    The provider-assigned unique ID for this managed resource.
    updated string
    The date and time when the logs stream was last updated.
    updated_by string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    id String
    The provider-assigned unique ID for this managed resource.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Integer
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    createdBy string
    The user who created the logs stream.
    id string
    The provider-assigned unique ID for this managed resource.
    updated string
    The date and time when the logs stream was last updated.
    updatedBy string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created str
    The date and time when the logs stream was created.
    created_by str
    The user who created the logs stream.
    id str
    The provider-assigned unique ID for this managed resource.
    updated str
    The date and time when the logs stream was last updated.
    updated_by str
    The user who last updated the logs stream.
    version int
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    id String
    The provider-assigned unique ID for this managed resource.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Number
    The version of the logs stream.

    Look up Existing MonitorLogsStream Resource

    Get an existing MonitorLogsStream 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?: MonitorLogsStreamState, opts?: CustomResourceOptions): MonitorLogsStream
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[str] = None,
            created_by: Optional[str] = None,
            destinations: Optional[Sequence[int]] = None,
            details: Optional[MonitorLogsStreamDetailsArgs] = None,
            label: Optional[str] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            updated: Optional[str] = None,
            updated_by: Optional[str] = None,
            version: Optional[int] = None) -> MonitorLogsStream
    func GetMonitorLogsStream(ctx *Context, name string, id IDInput, state *MonitorLogsStreamState, opts ...ResourceOption) (*MonitorLogsStream, error)
    public static MonitorLogsStream Get(string name, Input<string> id, MonitorLogsStreamState? state, CustomResourceOptions? opts = null)
    public static MonitorLogsStream get(String name, Output<String> id, MonitorLogsStreamState state, CustomResourceOptions options)
    resources:  _:    type: linode:MonitorLogsStream    get:      id: ${id}
    import {
      to = linode_monitor_logs_stream.example
      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:
    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Destinations List<int>
    The list of logs destination IDs attached to this stream.
    Details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    Label string
    The label of the logs stream.
    Status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Destinations []int
    The list of logs destination IDs attached to this stream.
    Details MonitorLogsStreamDetailsArgs
    Additional configuration details. Only applies to lkeAuditLogs streams.
    Label string
    The label of the logs stream.
    Status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    created_by string
    The user who created the logs stream.
    destinations list(number)
    The list of logs destination IDs attached to this stream.
    details object
    Additional configuration details. Only applies to lkeAuditLogs streams.
    label string
    The label of the logs stream.
    status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated string
    The date and time when the logs stream was last updated.
    updated_by string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    destinations List<Integer>
    The list of logs destination IDs attached to this stream.
    details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    label String
    The label of the logs stream.
    status String
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Integer
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    createdBy string
    The user who created the logs stream.
    destinations number[]
    The list of logs destination IDs attached to this stream.
    details MonitorLogsStreamDetails
    Additional configuration details. Only applies to lkeAuditLogs streams.
    label string
    The label of the logs stream.
    status string
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated string
    The date and time when the logs stream was last updated.
    updatedBy string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created str
    The date and time when the logs stream was created.
    created_by str
    The user who created the logs stream.
    destinations Sequence[int]
    The list of logs destination IDs attached to this stream.
    details MonitorLogsStreamDetailsArgs
    Additional configuration details. Only applies to lkeAuditLogs streams.
    label str
    The label of the logs stream.
    status str
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    type str
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated str
    The date and time when the logs stream was last updated.
    updated_by str
    The user who last updated the logs stream.
    version int
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    destinations List<Number>
    The list of logs destination IDs attached to this stream.
    details Property Map
    Additional configuration details. Only applies to lkeAuditLogs streams.
    label String
    The label of the logs stream.
    status String
    The status of the logs stream. One of: active, inactive, provisioning, deactivating.

    • details - (Optional, Nested Attribute) Additional configuration details. Only applies to lkeAuditLogs streams. Referenced directly (e.g. details.cluster_ids).
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Number
    The version of the logs stream.

    Supporting Types

    MonitorLogsStreamDetails, MonitorLogsStreamDetailsArgs

    ClusterIds List<int>
    The list of LKE cluster IDs to include in this stream.
    IsAutoAddAllClustersEnabled bool
    When true, all LKE clusters are automatically added to this stream.
    ClusterIds []int
    The list of LKE cluster IDs to include in this stream.
    IsAutoAddAllClustersEnabled bool
    When true, all LKE clusters are automatically added to this stream.
    cluster_ids list(number)
    The list of LKE cluster IDs to include in this stream.
    is_auto_add_all_clusters_enabled bool
    When true, all LKE clusters are automatically added to this stream.
    clusterIds List<Integer>
    The list of LKE cluster IDs to include in this stream.
    isAutoAddAllClustersEnabled Boolean
    When true, all LKE clusters are automatically added to this stream.
    clusterIds number[]
    The list of LKE cluster IDs to include in this stream.
    isAutoAddAllClustersEnabled boolean
    When true, all LKE clusters are automatically added to this stream.
    cluster_ids Sequence[int]
    The list of LKE cluster IDs to include in this stream.
    is_auto_add_all_clusters_enabled bool
    When true, all LKE clusters are automatically added to this stream.
    clusterIds List<Number>
    The list of LKE cluster IDs to include in this stream.
    isAutoAddAllClustersEnabled Boolean
    When true, all LKE clusters are automatically added to this stream.

    Import

    Monitor Logs Streams can be imported using the id, e.g.

    $ pulumi import linode:index/monitorLogsStream:MonitorLogsStream example 12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo linode logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial