Skip to content

datadog list-log-indexes

The Index object describes the configuration of a log index

Description

This endpoint returns an array of the LogIndex objects

Synopsis

datadog list-log-indexes
    [--site <site>]
    --index <index>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

index - (string)

     The name of the index
     Example: --index "index-1"
     Default: _None_      Attributes: required

Examples

Input:

!datadog list-log-indexes
Output:
NAME    RATE-LIMITED    FILTER-QUERY    EXCLUSION-FILTERS   DAILY-LIMIT
main    false           source:python   payment               300000000
sdff    false           source:python   payment               300000000
mdsdain false           source:python   payment               300000000
Input:
!datadog list-log-indexes --index "main"
Output:
NAME    RATE-LIMITED    FILTER-QUERY    EXCLUSION-FILTERS   DAILY-LIMIT
main    false           source:python   payment               300000000

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "datadog"
Service Instance
Namespace
Object Type "indexes"
Object ID index

Please see Access Control for details.