1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getMonitorLogsStreams
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

    Provides a list of Linode Monitor Logs Streams. 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 all = linode.getMonitorLogsStreams({});
    
    import pulumi
    import pulumi_linode as linode
    
    all = linode.get_monitor_logs_streams()
    
    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.GetMonitorLogsStreams(ctx, &linode.GetMonitorLogsStreamsArgs{}, nil)
    		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 all = Linode.GetMonitorLogsStreams.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetMonitorLogsStreamsArgs;
    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) {
            final var all = LinodeFunctions.getMonitorLogsStreams(GetMonitorLogsStreamsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: linode:getMonitorLogsStreams
          arguments: {}
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getmonitorlogsstreams" "all" {
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const activeAudit = linode.getMonitorLogsStreams({
        filters: [
            {
                name: "type",
                values: ["audit_logs"],
            },
            {
                name: "status",
                values: ["active"],
            },
        ],
    });
    
    import pulumi
    import pulumi_linode as linode
    
    active_audit = linode.get_monitor_logs_streams(filters=[
        {
            "name": "type",
            "values": ["audit_logs"],
        },
        {
            "name": "status",
            "values": ["active"],
        },
    ])
    
    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.GetMonitorLogsStreams(ctx, &linode.GetMonitorLogsStreamsArgs{
    			Filters: []linode.GetMonitorLogsStreamsFilter{
    				{
    					Name: "type",
    					Values: []string{
    						"audit_logs",
    					},
    				},
    				{
    					Name: "status",
    					Values: []string{
    						"active",
    					},
    				},
    			},
    		}, nil)
    		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 activeAudit = Linode.GetMonitorLogsStreams.Invoke(new()
        {
            Filters = new[]
            {
                new Linode.Inputs.GetMonitorLogsStreamsFilterInputArgs
                {
                    Name = "type",
                    Values = new[]
                    {
                        "audit_logs",
                    },
                },
                new Linode.Inputs.GetMonitorLogsStreamsFilterInputArgs
                {
                    Name = "status",
                    Values = new[]
                    {
                        "active",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetMonitorLogsStreamsArgs;
    import com.pulumi.linode.inputs.GetMonitorLogsStreamsFilterArgs;
    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) {
            final var activeAudit = LinodeFunctions.getMonitorLogsStreams(GetMonitorLogsStreamsArgs.builder()
                .filters(            
                    GetMonitorLogsStreamsFilterArgs.builder()
                        .name("type")
                        .values("audit_logs")
                        .build(),
                    GetMonitorLogsStreamsFilterArgs.builder()
                        .name("status")
                        .values("active")
                        .build())
                .build());
    
        }
    }
    
    variables:
      activeAudit:
        fn::invoke:
          function: linode:getMonitorLogsStreams
          arguments:
            filters:
              - name: type
                values:
                  - audit_logs
              - name: status
                values:
                  - active
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getmonitorlogsstreams" "activeAudit" {
      filters {
        name   = "type"
        values = ["audit_logs"]
      }
      filters {
        name   = "status"
        values = ["active"]
      }
    }
    

    Filterable Fields

    • label
    • type
    • status

    Using getMonitorLogsStreams

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMonitorLogsStreams(args: GetMonitorLogsStreamsArgs, opts?: InvokeOptions): Promise<GetMonitorLogsStreamsResult>
    function getMonitorLogsStreamsOutput(args: GetMonitorLogsStreamsOutputArgs, opts?: InvokeOutputOptions): Output<GetMonitorLogsStreamsResult>
    def get_monitor_logs_streams(filters: Optional[Sequence[GetMonitorLogsStreamsFilter]] = None,
                                 order: Optional[str] = None,
                                 order_by: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetMonitorLogsStreamsResult
    def get_monitor_logs_streams_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetMonitorLogsStreamsFilterArgs]]]] = None,
                                 order: pulumi.Input[Optional[str]] = None,
                                 order_by: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetMonitorLogsStreamsResult]
    func GetMonitorLogsStreams(ctx *Context, args *GetMonitorLogsStreamsArgs, opts ...InvokeOption) (*GetMonitorLogsStreamsResult, error)
    func GetMonitorLogsStreamsOutput(ctx *Context, args *GetMonitorLogsStreamsOutputArgs, opts ...InvokeOption) GetMonitorLogsStreamsResultOutput

    > Note: This function is named GetMonitorLogsStreams in the Go SDK.

    public static class GetMonitorLogsStreams 
    {
        public static Task<GetMonitorLogsStreamsResult> InvokeAsync(GetMonitorLogsStreamsArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorLogsStreamsResult> Invoke(GetMonitorLogsStreamsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorLogsStreamsResult> Invoke(GetMonitorLogsStreamsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMonitorLogsStreamsResult> getMonitorLogsStreams(GetMonitorLogsStreamsArgs args, InvokeOptions options)
    public static Output<GetMonitorLogsStreamsResult> getMonitorLogsStreams(GetMonitorLogsStreamsArgs args, InvokeOptions options)
    public static Output<GetMonitorLogsStreamsResult> getMonitorLogsStreams(GetMonitorLogsStreamsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getMonitorLogsStreams:getMonitorLogsStreams
      arguments:
        # arguments dictionary
    data "linode_get_monitor_logs_streams" "name" {
        # arguments
    }

    The following arguments are supported:

    getMonitorLogsStreams Result

    The following output properties are available:

    Id string
    The unique ID of this logs stream.
    Streams List<GetMonitorLogsStreamsStream>
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    Filters List<GetMonitorLogsStreamsFilter>
    Order string
    OrderBy string
    Id string
    The unique ID of this logs stream.
    Streams []GetMonitorLogsStreamsStream
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    Filters []GetMonitorLogsStreamsFilter
    Order string
    OrderBy string
    id string
    The unique ID of this logs stream.
    streams list(object)
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    filters list(object)
    order string
    order_by string
    id String
    The unique ID of this logs stream.
    streams List<GetMonitorLogsStreamsStream>
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    filters List<GetMonitorLogsStreamsFilter>
    order String
    orderBy String
    id string
    The unique ID of this logs stream.
    streams GetMonitorLogsStreamsStream[]
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    filters GetMonitorLogsStreamsFilter[]
    order string
    orderBy string
    id str
    The unique ID of this logs stream.
    streams Sequence[GetMonitorLogsStreamsStream]
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    filters Sequence[GetMonitorLogsStreamsFilter]
    order str
    order_by str
    id String
    The unique ID of this logs stream.
    streams List<Property Map>
    (Nested Attribute List) The returned list of logs streams. Referenced by index (e.g. streams[0].id).
    filters List<Property Map>
    order String
    orderBy String

    Supporting Types

    GetMonitorLogsStreamsFilter

    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values List<string>
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values []string
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values list(string)
    A list of values for the filter to allow. These values should all be in string form.
    match_by string
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)
    name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values string[]
    A list of values for the filter to allow. These values should all be in string form.
    matchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name str
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values Sequence[str]
    A list of values for the filter to allow. These values should all be in string form.
    match_by str
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)

    GetMonitorLogsStreamsStream

    Created string
    When this logs stream was created.
    CreatedBy string
    The user who created this logs stream.
    Id int
    The unique ID of this logs stream.
    Label string
    The label for this logs stream.
    Status string
    The status of this logs stream.
    Type string
    The type of this logs stream.
    Updated string
    When this logs stream was last updated.
    UpdatedBy string
    The user who last updated this logs stream.
    Version int
    The version of this logs stream.
    Created string
    When this logs stream was created.
    CreatedBy string
    The user who created this logs stream.
    Id int
    The unique ID of this logs stream.
    Label string
    The label for this logs stream.
    Status string
    The status of this logs stream.
    Type string
    The type of this logs stream.
    Updated string
    When this logs stream was last updated.
    UpdatedBy string
    The user who last updated this logs stream.
    Version int
    The version of this logs stream.
    created string
    When this logs stream was created.
    created_by string
    The user who created this logs stream.
    id number
    The unique ID of this logs stream.
    label string
    The label for this logs stream.
    status string
    The status of this logs stream.
    type string
    The type of this logs stream.
    updated string
    When this logs stream was last updated.
    updated_by string
    The user who last updated this logs stream.
    version number
    The version of this logs stream.
    created String
    When this logs stream was created.
    createdBy String
    The user who created this logs stream.
    id Integer
    The unique ID of this logs stream.
    label String
    The label for this logs stream.
    status String
    The status of this logs stream.
    type String
    The type of this logs stream.
    updated String
    When this logs stream was last updated.
    updatedBy String
    The user who last updated this logs stream.
    version Integer
    The version of this logs stream.
    created string
    When this logs stream was created.
    createdBy string
    The user who created this logs stream.
    id number
    The unique ID of this logs stream.
    label string
    The label for this logs stream.
    status string
    The status of this logs stream.
    type string
    The type of this logs stream.
    updated string
    When this logs stream was last updated.
    updatedBy string
    The user who last updated this logs stream.
    version number
    The version of this logs stream.
    created str
    When this logs stream was created.
    created_by str
    The user who created this logs stream.
    id int
    The unique ID of this logs stream.
    label str
    The label for this logs stream.
    status str
    The status of this logs stream.
    type str
    The type of this logs stream.
    updated str
    When this logs stream was last updated.
    updated_by str
    The user who last updated this logs stream.
    version int
    The version of this logs stream.
    created String
    When this logs stream was created.
    createdBy String
    The user who created this logs stream.
    id Number
    The unique ID of this logs stream.
    label String
    The label for this logs stream.
    status String
    The status of this logs stream.
    type String
    The type of this logs stream.
    updated String
    When this logs stream was last updated.
    updatedBy String
    The user who last updated this logs stream.
    version Number
    The version of this logs stream.

    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