1. Packages
  2. Datadog
  3. API Docs
  4. getLogsIndexes
Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi

datadog.getLogsIndexes

Explore with Pulumi AI

datadog logo
Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi

    Use this data source to list several existing logs indexes for use in other resources.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Datadog.GetLogsIndexes.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.GetLogsIndexes(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    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) {
            final var test = DatadogFunctions.getLogsIndexes();
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    test = datadog.get_logs_indexes()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const test = datadog.getLogsIndexes({});
    
    variables:
      test:
        fn::invoke:
          Function: datadog:getLogsIndexes
          Arguments: {}
    

    Using getLogsIndexes

    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 getLogsIndexes(opts?: InvokeOptions): Promise<GetLogsIndexesResult>
    function getLogsIndexesOutput(opts?: InvokeOptions): Output<GetLogsIndexesResult>
    def get_logs_indexes(opts: Optional[InvokeOptions] = None) -> GetLogsIndexesResult
    def get_logs_indexes_output(opts: Optional[InvokeOptions] = None) -> Output[GetLogsIndexesResult]
    func GetLogsIndexes(ctx *Context, opts ...InvokeOption) (*GetLogsIndexesResult, error)
    func GetLogsIndexesOutput(ctx *Context, opts ...InvokeOption) GetLogsIndexesResultOutput

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

    public static class GetLogsIndexes 
    {
        public static Task<GetLogsIndexesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLogsIndexesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsIndexesResult> getLogsIndexes(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getLogsIndexes:getLogsIndexes
      arguments:
        # arguments dictionary

    getLogsIndexes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LogsIndexes List<GetLogsIndexesLogsIndex>
    List of logs indexes
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsIndexes []GetLogsIndexesLogsIndex
    List of logs indexes
    id String
    The provider-assigned unique ID for this managed resource.
    logsIndexes List<GetLogsIndexesLogsIndex>
    List of logs indexes
    id string
    The provider-assigned unique ID for this managed resource.
    logsIndexes GetLogsIndexesLogsIndex[]
    List of logs indexes
    id str
    The provider-assigned unique ID for this managed resource.
    logs_indexes Sequence[GetLogsIndexesLogsIndex]
    List of logs indexes
    id String
    The provider-assigned unique ID for this managed resource.
    logsIndexes List<Property Map>
    List of logs indexes

    Supporting Types

    GetLogsIndexesLogsIndex

    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitResets List<GetLogsIndexesLogsIndexDailyLimitReset>
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage double
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    ExclusionFilters List<GetLogsIndexesLogsIndexExclusionFilter>
    List of exclusion filters.
    Filters List<GetLogsIndexesLogsIndexFilter>
    Logs filter
    Name string
    The name of the index.
    RetentionDays int
    The number of days before logs are deleted from this index.
    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitResets []GetLogsIndexesLogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage float64
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    ExclusionFilters []GetLogsIndexesLogsIndexExclusionFilter
    List of exclusion filters.
    Filters []GetLogsIndexesLogsIndexFilter
    Logs filter
    Name string
    The name of the index.
    RetentionDays int
    The number of days before logs are deleted from this index.
    dailyLimit Integer
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitResets List<GetLogsIndexesLogsIndexDailyLimitReset>
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Double
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    exclusionFilters List<GetLogsIndexesLogsIndexExclusionFilter>
    List of exclusion filters.
    filters List<GetLogsIndexesLogsIndexFilter>
    Logs filter
    name String
    The name of the index.
    retentionDays Integer
    The number of days before logs are deleted from this index.
    dailyLimit number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitResets GetLogsIndexesLogsIndexDailyLimitReset[]
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage number
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    exclusionFilters GetLogsIndexesLogsIndexExclusionFilter[]
    List of exclusion filters.
    filters GetLogsIndexesLogsIndexFilter[]
    Logs filter
    name string
    The name of the index.
    retentionDays number
    The number of days before logs are deleted from this index.
    daily_limit int
    The number of log events you can send in this index per day before you are rate-limited.
    daily_limit_resets Sequence[GetLogsIndexesLogsIndexDailyLimitReset]
    Object containing options to override the default daily limit reset time.
    daily_limit_warning_threshold_percentage float
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    exclusion_filters Sequence[GetLogsIndexesLogsIndexExclusionFilter]
    List of exclusion filters.
    filters Sequence[GetLogsIndexesLogsIndexFilter]
    Logs filter
    name str
    The name of the index.
    retention_days int
    The number of days before logs are deleted from this index.
    dailyLimit Number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitResets List<Property Map>
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Number
    The percentage threshold of the daily quota at which a Datadog warning event is generated.
    exclusionFilters List<Property Map>
    List of exclusion filters.
    filters List<Property Map>
    Logs filter
    name String
    The name of the index.
    retentionDays Number
    The number of days before logs are deleted from this index.

    GetLogsIndexesLogsIndexDailyLimitReset

    ResetTime string
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    ResetUtcOffset string
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
    ResetTime string
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    ResetUtcOffset string
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
    resetTime String
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    resetUtcOffset String
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
    resetTime string
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    resetUtcOffset string
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
    reset_time str
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    reset_utc_offset str
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
    resetTime String
    String in HH:00 format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive).
    resetUtcOffset String
    String in (-|+)HH:00 format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).

    GetLogsIndexesLogsIndexExclusionFilter

    IsEnabled bool
    A boolean stating if the exclusion is active or not.
    Name string
    The name of the exclusion filter.
    Filters List<GetLogsIndexesLogsIndexExclusionFilterFilter>
    IsEnabled bool
    A boolean stating if the exclusion is active or not.
    Name string
    The name of the exclusion filter.
    Filters []GetLogsIndexesLogsIndexExclusionFilterFilter
    isEnabled Boolean
    A boolean stating if the exclusion is active or not.
    name String
    The name of the exclusion filter.
    filters List<GetLogsIndexesLogsIndexExclusionFilterFilter>
    isEnabled boolean
    A boolean stating if the exclusion is active or not.
    name string
    The name of the exclusion filter.
    filters GetLogsIndexesLogsIndexExclusionFilterFilter[]
    is_enabled bool
    A boolean stating if the exclusion is active or not.
    name str
    The name of the exclusion filter.
    filters Sequence[GetLogsIndexesLogsIndexExclusionFilterFilter]
    isEnabled Boolean
    A boolean stating if the exclusion is active or not.
    name String
    The name of the exclusion filter.
    filters List<Property Map>

    GetLogsIndexesLogsIndexExclusionFilterFilter

    Query string
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    SampleRate double
    The fraction of logs excluded by the exclusion filter, when active.
    Query string
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    SampleRate float64
    The fraction of logs excluded by the exclusion filter, when active.
    query String
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    sampleRate Double
    The fraction of logs excluded by the exclusion filter, when active.
    query string
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    sampleRate number
    The fraction of logs excluded by the exclusion filter, when active.
    query str
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    sample_rate float
    The fraction of logs excluded by the exclusion filter, when active.
    query String
    Only logs matching the filter criteria and the query of the parent index will be considered for this exclusion filter.
    sampleRate Number
    The fraction of logs excluded by the exclusion filter, when active.

    GetLogsIndexesLogsIndexFilter

    Query string
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.
    Query string
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.
    query String
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.
    query string
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.
    query str
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.
    query String
    Logs filter criteria. Only logs matching this filter criteria are considered for this index.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.25.1 published on Wednesday, Feb 14, 2024 by Pulumi