v1
latestOpenAPI 3.0.02026-07-142351,1971.3 MBLogs Indexes
Create an index
Creates a new index. Returns the Index object passed in the request body when the request is successful.
post/api/v1/logs/config/indexes
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"
},
"name": "main",
"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"
]
}