v1
latestOpenAPI 3.0.02026-07-142351,1971.3 MBLogs Indexes
Update an index
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.
put/api/v1/logs/config/indexes/{name}
Path parameters
namestring required
Name of the log index.
Request body
Example request
{
"daily_limit": 300000000,
"daily_limit_reset": {
"reset_time": "14:00",
"reset_utc_offset": "+02:00"
},
"daily_limit_warning_threshold_percentage": 70,
"exclusion_filters": [
{
"filter": {
"query": "*",
"sample_attribute": "@ci.job_id",
"sample_rate": 1
},
"name": "payment"
}
],
"filter": {
"query": "source:python"
},
"num_flex_logs_retention_days": 360,
"num_retention_days": 15,
"tags": [
"team:backend",
"env:production"
]
}Response
OK
Example response
{
"daily_limit": 300000000,
"daily_limit_reset": {
"reset_time": "14:00",
"reset_utc_offset": "+02:00"
},
"daily_limit_warning_threshold_percentage": 70,
"exclusion_filters": [
{
"filter": {
"query": "*",
"sample_attribute": "@ci.job_id",
"sample_rate": 1
},
"name": "payment"
}
],
"filter": {
"query": "source:python"
},
"name": "main",
"num_flex_logs_retention_days": 360,
"num_retention_days": 15,
"tags": [
"team:backend",
"env:production"
]
}