Logs Indexes

Update indexes order

This endpoint updates the index order of your organization. It returns the index order object passed in the request body when the request is successful.

put/api/v1/logs/config/index-order

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v1/logs/config/index-order
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Request body

index_namesstring[] required

Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

Example request

{
  "index_names": [
    "main",
    "payments",
    "web"
  ]
}

Response

OK

index_namesstring[] required

Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

Example response

{
  "index_names": [
    "main",
    "payments",
    "web"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.