Update an index

PUT {{baseUrl}}/api/v1/logs/config/indexes/:name

Update an index as identified by its name. Returns the Index object passed in the request body when the request is successful.

Using the PUT method updates your index’s configuration by replacing your current configuration with the new one sent to your Datadog organization.

Request Body

{"filter"=>{"query"=>"source:python"}, "daily_limit"=>300000000, "disable_daily_limit"=>false, "exclusion_filters"=>[{"name"=>"payment", "filter"=>{"sample_rate"=>1, "query"=>"*"}, "is_enabled"=>false}, {"name"=>"payment", "filter"=>{"sample_rate"=>1, "query"=>"*"}, "is_enabled"=>true}], "num_retention_days"=>15}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"name":"main","filter":{"query":"source:python"},"daily_limit":300000000,"exclusion_filters":[{"name":"payment","filter":{"sample_rate":1,"query":"*"},"is_enabled":false},{"name":"payment","filter":{"sample_rate":1,"query":"*"},"is_enabled":true}],"is_rate_limited":false,"num_retention_days":15}