Datadog v4.59.0 published on Wednesday, Oct 22, 2025 by Pulumi
datadog.getLogsIndexes
Use this data source to list several existing logs indexes for use in other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const test = datadog.getLogsIndexes({});
import pulumi
import pulumi_datadog as datadog
test = datadog.get_logs_indexes()
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, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var test = Datadog.GetLogsIndexes.Invoke();
});
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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
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)
public static Output<GetLogsIndexesResult> getLogsIndexes(InvokeOptions options)
fn::invoke:
function: datadog:index/getLogsIndexes:getLogsIndexes
arguments:
# arguments dictionarygetLogsIndexes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Logs
Indexes List<GetLogs Indexes Logs Index> - List of logs indexes
- Id string
- The provider-assigned unique ID for this managed resource.
- Logs
Indexes []GetLogs Indexes Logs Index - List of logs indexes
- id String
- The provider-assigned unique ID for this managed resource.
- logs
Indexes List<GetLogs Indexes Logs Index> - List of logs indexes
- id string
- The provider-assigned unique ID for this managed resource.
- logs
Indexes GetLogs Indexes Logs Index[] - List of logs indexes
- id str
- The provider-assigned unique ID for this managed resource.
- logs_
indexes Sequence[GetLogs Indexes Logs Index] - List of logs indexes
- id String
- The provider-assigned unique ID for this managed resource.
- logs
Indexes List<Property Map> - List of logs indexes
Supporting Types
GetLogsIndexesLogsIndex
- Daily
Limit int - The number of log events you can send in this index per day before you are rate-limited.
- Daily
Limit List<GetResets Logs Indexes Logs Index Daily Limit Reset> - Object containing options to override the default daily limit reset time.
- Daily
Limit doubleWarning Threshold Percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- Exclusion
Filters List<GetLogs Indexes Logs Index Exclusion Filter> - List of exclusion filters.
- Filters
List<Get
Logs Indexes Logs Index Filter> - Logs filter
- Flex
Retention intDays - 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.
- 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.
- Daily
Limit int - The number of log events you can send in this index per day before you are rate-limited.
- Daily
Limit []GetResets Logs Indexes Logs Index Daily Limit Reset - Object containing options to override the default daily limit reset time.
- Daily
Limit float64Warning Threshold Percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- Exclusion
Filters []GetLogs Indexes Logs Index Exclusion Filter - List of exclusion filters.
- Filters
[]Get
Logs Indexes Logs Index Filter - Logs filter
- Flex
Retention intDays - 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.
- 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.
- daily
Limit Integer - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit List<GetResets Logs Indexes Logs Index Daily Limit Reset> - Object containing options to override the default daily limit reset time.
- daily
Limit DoubleWarning Threshold Percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- exclusion
Filters List<GetLogs Indexes Logs Index Exclusion Filter> - List of exclusion filters.
- filters
List<Get
Logs Indexes Logs Index Filter> - Logs filter
- flex
Retention IntegerDays - 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.
- retention
Days Integer - The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
- daily
Limit number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit GetResets Logs Indexes Logs Index Daily Limit Reset[] - Object containing options to override the default daily limit reset time.
- daily
Limit numberWarning Threshold Percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- exclusion
Filters GetLogs Indexes Logs Index Exclusion Filter[] - List of exclusion filters.
- filters
Get
Logs Indexes Logs Index Filter[] - Logs filter
- flex
Retention numberDays - 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.
- retention
Days 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_ Sequence[Getresets Logs Indexes Logs Index Daily Limit Reset] - Object containing options to override the default daily limit reset time.
- daily_
limit_ floatwarning_ threshold_ percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- exclusion_
filters Sequence[GetLogs Indexes Logs Index Exclusion Filter] - List of exclusion filters.
- filters
Sequence[Get
Logs Indexes Logs Index Filter] - Logs filter
- flex_
retention_ intdays - 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.
- 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.
- daily
Limit Number - The number of log events you can send in this index per day before you are rate-limited.
- daily
Limit List<Property Map>Resets - Object containing options to override the default daily limit reset time.
- daily
Limit NumberWarning Threshold Percentage - The percentage threshold of the daily quota at which a Datadog warning event is generated.
- exclusion
Filters List<Property Map> - List of exclusion filters.
- filters List<Property Map>
- Logs filter
- flex
Retention NumberDays - 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.
- retention
Days Number - The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index.
GetLogsIndexesLogsIndexDailyLimitReset
- Reset
Time string - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - Reset
Utc stringOffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
- Reset
Time string - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - Reset
Utc stringOffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
- reset
Time String - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - reset
Utc StringOffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
- reset
Time string - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - reset
Utc stringOffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
- reset_
time str - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - reset_
utc_ stroffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
- reset
Time String - String in
HH:00format representing the time of day the daily limit should be reset. The hours between 00 and 23 (inclusive). - reset
Utc StringOffset - String in
(-|+)HH:00format representing the UTC offset to apply to the given reset time. The hours between -12 and +14 (inclusive).
GetLogsIndexesLogsIndexExclusionFilter
- Is
Enabled bool - A boolean stating if the exclusion is active or not.
- Name string
- The name of the exclusion filter.
- Filters
List<Get
Logs Indexes 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
[]Get
Logs Indexes 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
List<Get
Logs Indexes 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
Get
Logs Indexes 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
Sequence[Get
Logs Indexes 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 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.
- 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.
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
datadogTerraform Provider.
