1. Packages
  2. Datadog Provider
  3. API Docs
  4. LogsIndex
Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi

datadog.LogsIndex

Explore with Pulumi AI

datadog logo
Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // A sample Datadog logs index resource definition.
    const sampleIndex = new datadog.LogsIndex("sample_index", {
        name: "your index",
        dailyLimit: 200000,
        dailyLimitReset: {
            resetTime: "14:00",
            resetUtcOffset: "+02:00",
        },
        dailyLimitWarningThresholdPercentage: 50,
        retentionDays: 7,
        flexRetentionDays: 180,
        filters: [{
            query: "*",
        }],
        exclusionFilters: [
            {
                name: "Filter coredns logs",
                isEnabled: true,
                filters: [{
                    query: "app:coredns",
                    sampleRate: 0.97,
                }],
            },
            {
                name: "Kubernetes apiserver",
                isEnabled: true,
                filters: [{
                    query: "service:kube_apiserver",
                    sampleRate: 1,
                }],
            },
        ],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # A sample Datadog logs index resource definition.
    sample_index = datadog.LogsIndex("sample_index",
        name="your index",
        daily_limit=200000,
        daily_limit_reset={
            "reset_time": "14:00",
            "reset_utc_offset": "+02:00",
        },
        daily_limit_warning_threshold_percentage=50,
        retention_days=7,
        flex_retention_days=180,
        filters=[{
            "query": "*",
        }],
        exclusion_filters=[
            {
                "name": "Filter coredns logs",
                "is_enabled": True,
                "filters": [{
                    "query": "app:coredns",
                    "sample_rate": 0.97,
                }],
            },
            {
                "name": "Kubernetes apiserver",
                "is_enabled": True,
                "filters": [{
                    "query": "service:kube_apiserver",
                    "sample_rate": 1,
                }],
            },
        ])
    
    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 {
    		// A sample Datadog logs index resource definition.
    		_, err := datadog.NewLogsIndex(ctx, "sample_index", &datadog.LogsIndexArgs{
    			Name:       pulumi.String("your index"),
    			DailyLimit: pulumi.Int(200000),
    			DailyLimitReset: &datadog.LogsIndexDailyLimitResetArgs{
    				ResetTime:      pulumi.String("14:00"),
    				ResetUtcOffset: pulumi.String("+02:00"),
    			},
    			DailyLimitWarningThresholdPercentage: pulumi.Float64(50),
    			RetentionDays:                        pulumi.Int(7),
    			FlexRetentionDays:                    pulumi.Int(180),
    			Filters: datadog.LogsIndexFilterArray{
    				&datadog.LogsIndexFilterArgs{
    					Query: pulumi.String("*"),
    				},
    			},
    			ExclusionFilters: datadog.LogsIndexExclusionFilterArray{
    				&datadog.LogsIndexExclusionFilterArgs{
    					Name:      pulumi.String("Filter coredns logs"),
    					IsEnabled: pulumi.Bool(true),
    					Filters: datadog.LogsIndexExclusionFilterFilterArray{
    						&datadog.LogsIndexExclusionFilterFilterArgs{
    							Query:      pulumi.String("app:coredns"),
    							SampleRate: pulumi.Float64(0.97),
    						},
    					},
    				},
    				&datadog.LogsIndexExclusionFilterArgs{
    					Name:      pulumi.String("Kubernetes apiserver"),
    					IsEnabled: pulumi.Bool(true),
    					Filters: datadog.LogsIndexExclusionFilterFilterArray{
    						&datadog.LogsIndexExclusionFilterFilterArgs{
    							Query:      pulumi.String("service:kube_apiserver"),
    							SampleRate: pulumi.Float64(1),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // A sample Datadog logs index resource definition.
        var sampleIndex = new Datadog.LogsIndex("sample_index", new()
        {
            Name = "your index",
            DailyLimit = 200000,
            DailyLimitReset = new Datadog.Inputs.LogsIndexDailyLimitResetArgs
            {
                ResetTime = "14:00",
                ResetUtcOffset = "+02:00",
            },
            DailyLimitWarningThresholdPercentage = 50,
            RetentionDays = 7,
            FlexRetentionDays = 180,
            Filters = new[]
            {
                new Datadog.Inputs.LogsIndexFilterArgs
                {
                    Query = "*",
                },
            },
            ExclusionFilters = new[]
            {
                new Datadog.Inputs.LogsIndexExclusionFilterArgs
                {
                    Name = "Filter coredns logs",
                    IsEnabled = true,
                    Filters = new[]
                    {
                        new Datadog.Inputs.LogsIndexExclusionFilterFilterArgs
                        {
                            Query = "app:coredns",
                            SampleRate = 0.97,
                        },
                    },
                },
                new Datadog.Inputs.LogsIndexExclusionFilterArgs
                {
                    Name = "Kubernetes apiserver",
                    IsEnabled = true,
                    Filters = new[]
                    {
                        new Datadog.Inputs.LogsIndexExclusionFilterFilterArgs
                        {
                            Query = "service:kube_apiserver",
                            SampleRate = 1,
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.LogsIndex;
    import com.pulumi.datadog.LogsIndexArgs;
    import com.pulumi.datadog.inputs.LogsIndexDailyLimitResetArgs;
    import com.pulumi.datadog.inputs.LogsIndexFilterArgs;
    import com.pulumi.datadog.inputs.LogsIndexExclusionFilterArgs;
    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) {
            // A sample Datadog logs index resource definition.
            var sampleIndex = new LogsIndex("sampleIndex", LogsIndexArgs.builder()
                .name("your index")
                .dailyLimit(200000)
                .dailyLimitReset(LogsIndexDailyLimitResetArgs.builder()
                    .resetTime("14:00")
                    .resetUtcOffset("+02:00")
                    .build())
                .dailyLimitWarningThresholdPercentage(50)
                .retentionDays(7)
                .flexRetentionDays(180)
                .filters(LogsIndexFilterArgs.builder()
                    .query("*")
                    .build())
                .exclusionFilters(            
                    LogsIndexExclusionFilterArgs.builder()
                        .name("Filter coredns logs")
                        .isEnabled(true)
                        .filters(LogsIndexExclusionFilterFilterArgs.builder()
                            .query("app:coredns")
                            .sampleRate(0.97)
                            .build())
                        .build(),
                    LogsIndexExclusionFilterArgs.builder()
                        .name("Kubernetes apiserver")
                        .isEnabled(true)
                        .filters(LogsIndexExclusionFilterFilterArgs.builder()
                            .query("service:kube_apiserver")
                            .sampleRate(1)
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      # A sample Datadog logs index resource definition.
      sampleIndex:
        type: datadog:LogsIndex
        name: sample_index
        properties:
          name: your index
          dailyLimit: 200000
          dailyLimitReset:
            resetTime: 14:00
            resetUtcOffset: +02:00
          dailyLimitWarningThresholdPercentage: 50
          retentionDays: 7
          flexRetentionDays: 180
          filters:
            - query: '*'
          exclusionFilters:
            - name: Filter coredns logs
              isEnabled: true
              filters:
                - query: app:coredns
                  sampleRate: 0.97
            - name: Kubernetes apiserver
              isEnabled: true
              filters:
                - query: service:kube_apiserver
                  sampleRate: 1
    

    Create LogsIndex Resource

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

    Constructor syntax

    new LogsIndex(name: string, args: LogsIndexArgs, opts?: CustomResourceOptions);
    @overload
    def LogsIndex(resource_name: str,
                  args: LogsIndexArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsIndex(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  filters: Optional[Sequence[LogsIndexFilterArgs]] = None,
                  name: Optional[str] = None,
                  daily_limit: Optional[int] = None,
                  daily_limit_reset: Optional[LogsIndexDailyLimitResetArgs] = None,
                  daily_limit_warning_threshold_percentage: Optional[float] = None,
                  disable_daily_limit: Optional[bool] = None,
                  exclusion_filters: Optional[Sequence[LogsIndexExclusionFilterArgs]] = None,
                  flex_retention_days: Optional[int] = None,
                  retention_days: Optional[int] = None)
    func NewLogsIndex(ctx *Context, name string, args LogsIndexArgs, opts ...ResourceOption) (*LogsIndex, error)
    public LogsIndex(string name, LogsIndexArgs args, CustomResourceOptions? opts = null)
    public LogsIndex(String name, LogsIndexArgs args)
    public LogsIndex(String name, LogsIndexArgs args, CustomResourceOptions options)
    
    type: datadog:LogsIndex
    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 LogsIndexArgs
    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 LogsIndexArgs
    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 LogsIndexArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsIndexArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsIndexArgs
    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 logsIndexResource = new Datadog.LogsIndex("logsIndexResource", new()
    {
        Filters = new[]
        {
            new Datadog.Inputs.LogsIndexFilterArgs
            {
                Query = "string",
            },
        },
        Name = "string",
        DailyLimit = 0,
        DailyLimitReset = new Datadog.Inputs.LogsIndexDailyLimitResetArgs
        {
            ResetTime = "string",
            ResetUtcOffset = "string",
        },
        DailyLimitWarningThresholdPercentage = 0,
        DisableDailyLimit = false,
        ExclusionFilters = new[]
        {
            new Datadog.Inputs.LogsIndexExclusionFilterArgs
            {
                Filters = new[]
                {
                    new Datadog.Inputs.LogsIndexExclusionFilterFilterArgs
                    {
                        Query = "string",
                        SampleRate = 0,
                    },
                },
                IsEnabled = false,
                Name = "string",
            },
        },
        FlexRetentionDays = 0,
        RetentionDays = 0,
    });
    
    example, err := datadog.NewLogsIndex(ctx, "logsIndexResource", &datadog.LogsIndexArgs{
    	Filters: datadog.LogsIndexFilterArray{
    		&datadog.LogsIndexFilterArgs{
    			Query: pulumi.String("string"),
    		},
    	},
    	Name:       pulumi.String("string"),
    	DailyLimit: pulumi.Int(0),
    	DailyLimitReset: &datadog.LogsIndexDailyLimitResetArgs{
    		ResetTime:      pulumi.String("string"),
    		ResetUtcOffset: pulumi.String("string"),
    	},
    	DailyLimitWarningThresholdPercentage: pulumi.Float64(0),
    	DisableDailyLimit:                    pulumi.Bool(false),
    	ExclusionFilters: datadog.LogsIndexExclusionFilterArray{
    		&datadog.LogsIndexExclusionFilterArgs{
    			Filters: datadog.LogsIndexExclusionFilterFilterArray{
    				&datadog.LogsIndexExclusionFilterFilterArgs{
    					Query:      pulumi.String("string"),
    					SampleRate: pulumi.Float64(0),
    				},
    			},
    			IsEnabled: pulumi.Bool(false),
    			Name:      pulumi.String("string"),
    		},
    	},
    	FlexRetentionDays: pulumi.Int(0),
    	RetentionDays:     pulumi.Int(0),
    })
    
    var logsIndexResource = new LogsIndex("logsIndexResource", LogsIndexArgs.builder()
        .filters(LogsIndexFilterArgs.builder()
            .query("string")
            .build())
        .name("string")
        .dailyLimit(0)
        .dailyLimitReset(LogsIndexDailyLimitResetArgs.builder()
            .resetTime("string")
            .resetUtcOffset("string")
            .build())
        .dailyLimitWarningThresholdPercentage(0)
        .disableDailyLimit(false)
        .exclusionFilters(LogsIndexExclusionFilterArgs.builder()
            .filters(LogsIndexExclusionFilterFilterArgs.builder()
                .query("string")
                .sampleRate(0)
                .build())
            .isEnabled(false)
            .name("string")
            .build())
        .flexRetentionDays(0)
        .retentionDays(0)
        .build());
    
    logs_index_resource = datadog.LogsIndex("logsIndexResource",
        filters=[datadog.LogsIndexFilterArgs(
            query="string",
        )],
        name="string",
        daily_limit=0,
        daily_limit_reset=datadog.LogsIndexDailyLimitResetArgs(
            reset_time="string",
            reset_utc_offset="string",
        ),
        daily_limit_warning_threshold_percentage=0,
        disable_daily_limit=False,
        exclusion_filters=[datadog.LogsIndexExclusionFilterArgs(
            filters=[datadog.LogsIndexExclusionFilterFilterArgs(
                query="string",
                sample_rate=0,
            )],
            is_enabled=False,
            name="string",
        )],
        flex_retention_days=0,
        retention_days=0)
    
    const logsIndexResource = new datadog.LogsIndex("logsIndexResource", {
        filters: [{
            query: "string",
        }],
        name: "string",
        dailyLimit: 0,
        dailyLimitReset: {
            resetTime: "string",
            resetUtcOffset: "string",
        },
        dailyLimitWarningThresholdPercentage: 0,
        disableDailyLimit: false,
        exclusionFilters: [{
            filters: [{
                query: "string",
                sampleRate: 0,
            }],
            isEnabled: false,
            name: "string",
        }],
        flexRetentionDays: 0,
        retentionDays: 0,
    });
    
    type: datadog:LogsIndex
    properties:
        dailyLimit: 0
        dailyLimitReset:
            resetTime: string
            resetUtcOffset: string
        dailyLimitWarningThresholdPercentage: 0
        disableDailyLimit: false
        exclusionFilters:
            - filters:
                - query: string
                  sampleRate: 0
              isEnabled: false
              name: string
        filters:
            - query: string
        flexRetentionDays: 0
        name: string
        retentionDays: 0
    

    LogsIndex Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LogsIndex resource accepts the following input properties:

    Filters List<LogsIndexFilter>
    Logs filter
    Name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage double
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    DisableDailyLimit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    ExclusionFilters List<LogsIndexExclusionFilter>
    List of exclusion filters.
    FlexRetentionDays int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    RetentionDays int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    Filters []LogsIndexFilterArgs
    Logs filter
    Name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitReset LogsIndexDailyLimitResetArgs
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage float64
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    DisableDailyLimit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    ExclusionFilters []LogsIndexExclusionFilterArgs
    List of exclusion filters.
    FlexRetentionDays int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    RetentionDays int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    filters List<LogsIndexFilter>
    Logs filter
    name String
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    dailyLimit Integer
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Double
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit Boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters List<LogsIndexExclusionFilter>
    List of exclusion filters.
    flexRetentionDays Integer
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    retentionDays Integer
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    filters LogsIndexFilter[]
    Logs filter
    name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    dailyLimit number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage number
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters LogsIndexExclusionFilter[]
    List of exclusion filters.
    flexRetentionDays number
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    retentionDays number
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    filters Sequence[LogsIndexFilterArgs]
    Logs filter
    name str
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    daily_limit int
    The number of log events you can send in this index per day before you are rate-limited.
    daily_limit_reset LogsIndexDailyLimitResetArgs
    Object containing options to override the default daily limit reset time.
    daily_limit_warning_threshold_percentage float
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disable_daily_limit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusion_filters Sequence[LogsIndexExclusionFilterArgs]
    List of exclusion filters.
    flex_retention_days int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    retention_days int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    filters List<Property Map>
    Logs filter
    name String
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    dailyLimit Number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset Property Map
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Number
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit Boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters List<Property Map>
    List of exclusion filters.
    flexRetentionDays Number
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    retentionDays Number
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LogsIndex Resource

    Get an existing LogsIndex 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?: LogsIndexState, opts?: CustomResourceOptions): LogsIndex
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            daily_limit: Optional[int] = None,
            daily_limit_reset: Optional[LogsIndexDailyLimitResetArgs] = None,
            daily_limit_warning_threshold_percentage: Optional[float] = None,
            disable_daily_limit: Optional[bool] = None,
            exclusion_filters: Optional[Sequence[LogsIndexExclusionFilterArgs]] = None,
            filters: Optional[Sequence[LogsIndexFilterArgs]] = None,
            flex_retention_days: Optional[int] = None,
            name: Optional[str] = None,
            retention_days: Optional[int] = None) -> LogsIndex
    func GetLogsIndex(ctx *Context, name string, id IDInput, state *LogsIndexState, opts ...ResourceOption) (*LogsIndex, error)
    public static LogsIndex Get(string name, Input<string> id, LogsIndexState? state, CustomResourceOptions? opts = null)
    public static LogsIndex get(String name, Output<String> id, LogsIndexState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage double
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    DisableDailyLimit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    ExclusionFilters List<LogsIndexExclusionFilter>
    List of exclusion filters.
    Filters List<LogsIndexFilter>
    Logs filter
    FlexRetentionDays int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    Name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    RetentionDays int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    DailyLimit int
    The number of log events you can send in this index per day before you are rate-limited.
    DailyLimitReset LogsIndexDailyLimitResetArgs
    Object containing options to override the default daily limit reset time.
    DailyLimitWarningThresholdPercentage float64
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    DisableDailyLimit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    ExclusionFilters []LogsIndexExclusionFilterArgs
    List of exclusion filters.
    Filters []LogsIndexFilterArgs
    Logs filter
    FlexRetentionDays int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    Name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    RetentionDays int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    dailyLimit Integer
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Double
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit Boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters List<LogsIndexExclusionFilter>
    List of exclusion filters.
    filters List<LogsIndexFilter>
    Logs filter
    flexRetentionDays Integer
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    name String
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    retentionDays Integer
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    dailyLimit number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset LogsIndexDailyLimitReset
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage number
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters LogsIndexExclusionFilter[]
    List of exclusion filters.
    filters LogsIndexFilter[]
    Logs filter
    flexRetentionDays number
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    name string
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    retentionDays number
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    daily_limit int
    The number of log events you can send in this index per day before you are rate-limited.
    daily_limit_reset LogsIndexDailyLimitResetArgs
    Object containing options to override the default daily limit reset time.
    daily_limit_warning_threshold_percentage float
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disable_daily_limit bool
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusion_filters Sequence[LogsIndexExclusionFilterArgs]
    List of exclusion filters.
    filters Sequence[LogsIndexFilterArgs]
    Logs filter
    flex_retention_days int
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    name str
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    retention_days int
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
    dailyLimit Number
    The number of log events you can send in this index per day before you are rate-limited.
    dailyLimitReset Property Map
    Object containing options to override the default daily limit reset time.
    dailyLimitWarningThresholdPercentage Number
    A percentage threshold of the daily quota at which a Datadog warning event is generated.
    disableDailyLimit Boolean
    If true, sets the dailylimit value to null and the index is not limited on a daily basis (any specified dailylimit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
    exclusionFilters List<Property Map>
    List of exclusion filters.
    filters List<Property Map>
    Logs filter
    flexRetentionDays Number
    The total number of days logs are stored in Standard and Flex Tier before being deleted from the index.
    name String
    The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.
    retentionDays Number
    The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.

    Supporting Types

    LogsIndexDailyLimitReset, LogsIndexDailyLimitResetArgs

    ResetTime string
    String in HH:00 format representing the time of day the daily limit should be reset. The hours must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be 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 must be between -12 and +14 (inclusive).

    LogsIndexExclusionFilter, LogsIndexExclusionFilterArgs

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

    LogsIndexExclusionFilterFilter, LogsIndexExclusionFilterFilterArgs

    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.

    LogsIndexFilter, LogsIndexFilterArgs

    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.

    Import

    $ pulumi import datadog:index/logsIndex:LogsIndex name> <indexName>
    

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

    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.34.0 published on Friday, Oct 4, 2024 by Pulumi