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, "daily_limit_reset"=>{"reset_time"=>"14:00", "reset_utc_offset"=>"+02:00"}, "daily_limit_warning_threshold_percentage"=>70, "disable_daily_limit"=>false, "exclusion_filters"=>[{"name"=>"payment", "filter"=>{"sample_rate"=>1, "query"=>"*"}, "is_enabled"=>true}, {"name"=>"payment", "filter"=>{"sample_rate"=>1, "query"=>"*"}, "is_enabled"=>false}], "num_retention_days"=>15}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"name":"main","filter":{"query":"source:python"},"daily_limit":300000000,"daily_limit_reset":{"reset_time":"14:00","reset_utc_offset":"+02:00"},"daily_limit_warning_threshold_percentage":70,"exclusion_filters":[{"name":"payment","filter":{"sample_rate":1,"query":"*"},"is_enabled":true},{"name":"payment","filter":{"sample_rate":1,"query":"*"},"is_enabled":true}],"is_rate_limited":false,"num_retention_days":15}