datadog.LogsIndex
Explore with Pulumi AI
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,
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,
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),
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,
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)
.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
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,
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",
},
},
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"),
},
},
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())
.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",
)],
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",
}],
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
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<Logs
Index Filter> - 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.
- Daily
Limit int - The number of log events you can send in this index per day before you are rate-limited.
- Daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- Daily
Limit doubleWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- Disable
Daily boolLimit - 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 List<LogsIndex Exclusion Filter> - List of exclusion filters.
- Retention
Days int - The number of days before logs are deleted from this index.
- Filters
[]Logs
Index Filter Args - 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.
- Daily
Limit int - The number of log events you can send in this index per day before you are rate-limited.
- Daily
Limit LogsReset Index Daily Limit Reset Args - Object containing options to override the default daily limit reset time.
- Daily
Limit float64Warning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- Disable
Daily boolLimit - 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 []LogsIndex Exclusion Filter Args - List of exclusion filters.
- Retention
Days int - The number of days before logs are deleted from this index.
- filters
List<Logs
Index Filter> - 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.
- daily
Limit Integer - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- daily
Limit DoubleWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily BooleanLimit - 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 List<LogsIndex Exclusion Filter> - List of exclusion filters.
- retention
Days Integer - The number of days before logs are deleted from this index.
- filters
Logs
Index Filter[] - 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.
- daily
Limit number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- daily
Limit numberWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily booleanLimit - 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 LogsIndex Exclusion Filter[] - List of exclusion filters.
- retention
Days number - The number of days before logs are deleted from this index.
- filters
Sequence[Logs
Index Filter Args] - 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_ Logsreset Index Daily Limit Reset Args - Object containing options to override the default daily limit reset time.
- daily_
limit_ floatwarning_ threshold_ percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable_
daily_ boollimit - 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[LogsIndex Exclusion Filter Args] - List of exclusion filters.
- retention_
days int - The number of days before logs are deleted from this 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.
- daily
Limit Number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit Property MapReset - Object containing options to override the default daily limit reset time.
- daily
Limit NumberWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily BooleanLimit - 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 List<Property Map> - List of exclusion filters.
- retention
Days Number - The number of days before logs are deleted from this 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,
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.
- Daily
Limit int - The number of log events you can send in this index per day before you are rate-limited.
- Daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- Daily
Limit doubleWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- Disable
Daily boolLimit - 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 List<LogsIndex Exclusion Filter> - List of exclusion filters.
- Filters
List<Logs
Index Filter> - 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.
- Retention
Days int - 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 LogsReset Index Daily Limit Reset Args - Object containing options to override the default daily limit reset time.
- Daily
Limit float64Warning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- Disable
Daily boolLimit - 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 []LogsIndex Exclusion Filter Args - List of exclusion filters.
- Filters
[]Logs
Index Filter Args - 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.
- Retention
Days int - The number of days before logs are deleted from this index.
- daily
Limit Integer - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- daily
Limit DoubleWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily BooleanLimit - 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 List<LogsIndex Exclusion Filter> - List of exclusion filters.
- filters
List<Logs
Index Filter> - 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.
- retention
Days Integer - The number of days before logs are deleted from this index.
- daily
Limit number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit LogsReset Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- daily
Limit numberWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily booleanLimit - 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 LogsIndex Exclusion Filter[] - List of exclusion filters.
- filters
Logs
Index Filter[] - 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.
- retention
Days 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_ Logsreset Index Daily Limit Reset Args - Object containing options to override the default daily limit reset time.
- daily_
limit_ floatwarning_ threshold_ percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable_
daily_ boollimit - 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[LogsIndex Exclusion Filter Args] - List of exclusion filters.
- filters
Sequence[Logs
Index Filter Args] - 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.
- retention_
days int - The number of days before logs are deleted from this index.
- daily
Limit Number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit Property MapReset - Object containing options to override the default daily limit reset time.
- daily
Limit NumberWarning Threshold Percentage - A percentage threshold of the daily quota at which a Datadog warning event is generated.
- disable
Daily BooleanLimit - 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 List<Property Map> - List of exclusion filters.
- 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.
- retention
Days Number - The number of days before logs are deleted from this index.
Supporting Types
LogsIndexDailyLimitReset, LogsIndexDailyLimitResetArgs
- Reset
Time 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). - Reset
Utc stringOffset - 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 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). - Reset
Utc stringOffset - 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 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). - reset
Utc StringOffset - 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 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). - reset
Utc stringOffset - 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_ stroffset - 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 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). - reset
Utc StringOffset - 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<Logs
Index Exclusion Filter Filter> - Is
Enabled bool - A boolean stating if the exclusion is active or not.
- Name string
- The name of the exclusion filter.
- Filters
[]Logs
Index Exclusion Filter Filter - Is
Enabled bool - A boolean stating if the exclusion is active or not.
- Name string
- The name of the exclusion filter.
- filters
List<Logs
Index Exclusion Filter Filter> - is
Enabled Boolean - A boolean stating if the exclusion is active or not.
- name String
- The name of the exclusion filter.
- filters
Logs
Index Exclusion Filter Filter[] - is
Enabled boolean - A boolean stating if the exclusion is active or not.
- name string
- The name of the exclusion filter.
- filters
Sequence[Logs
Index Exclusion Filter Filter] - 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>
- is
Enabled 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.
- Sample
Rate 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.
- Sample
Rate 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.
- sample
Rate 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.
- sample
Rate 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.
- sample
Rate 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.