Create an index

POST {{baseUrl}}/api/v1/logs/config/indexes

Creates a new index. Returns the Index object passed in the request body when the request is successful.

Request Body

{"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}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

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}