---
title: Logs Indexes
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Logs Indexes
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Logs Indexes

Manage configuration of [log indexes](https://docs.datadoghq.com/logs/indexes.md).

## [Get all indexes →](https://docs.datadoghq.com/api/latest/logs-indexes/get-all-indexes.md){% #get-all-indexes %}

| Datadog site      | API endpoint                                                 |
| ----------------- | ------------------------------------------------------------ |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v1/logs/config/indexes |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v1/logs/config/indexes |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v1/logs/config/indexes      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v1/logs/config/indexes      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v1/logs/config/indexes  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v1/logs/config/indexes |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v1/logs/config/indexes     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v1/logs/config/indexes |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v1/logs/config/indexes |

## [Get an index →](https://docs.datadoghq.com/api/latest/logs-indexes/get-an-index.md){% #get-an-index %}

| Datadog site      | API endpoint                                                        |
| ----------------- | ------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v1/logs/config/indexes/{name}      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v1/logs/config/indexes/{name}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v1/logs/config/indexes/{name}  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v1/logs/config/indexes/{name}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v1/logs/config/indexes/{name} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v1/logs/config/indexes/{name} |

## [Create an index →](https://docs.datadoghq.com/api/latest/logs-indexes/create-an-index.md){% #create-an-index %}

| Datadog site      | API endpoint                                                  |
| ----------------- | ------------------------------------------------------------- |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v1/logs/config/indexes |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v1/logs/config/indexes |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v1/logs/config/indexes      |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v1/logs/config/indexes      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v1/logs/config/indexes  |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v1/logs/config/indexes |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v1/logs/config/indexes     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v1/logs/config/indexes |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v1/logs/config/indexes |

## [Update an index →](https://docs.datadoghq.com/api/latest/logs-indexes/update-an-index.md){% #update-an-index %}

| Datadog site      | API endpoint                                                        |
| ----------------- | ------------------------------------------------------------------- |
| ap1.datadoghq.com | PUT https://api.ap1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| ap2.datadoghq.com | PUT https://api.ap2.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.eu  | PUT https://api.datadoghq.eu/api/v1/logs/config/indexes/{name}      |
| app.ddog-gov.com  | PUT https://api.ddog-gov.com/api/v1/logs/config/indexes/{name}      |
| us2.ddog-gov.com  | PUT https://api.us2.ddog-gov.com/api/v1/logs/config/indexes/{name}  |
| uk1.datadoghq.com | PUT https://api.uk1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.com | PUT https://api.datadoghq.com/api/v1/logs/config/indexes/{name}     |
| us3.datadoghq.com | PUT https://api.us3.datadoghq.com/api/v1/logs/config/indexes/{name} |
| us5.datadoghq.com | PUT https://api.us5.datadoghq.com/api/v1/logs/config/indexes/{name} |

## [Delete an index →](https://docs.datadoghq.com/api/latest/logs-indexes/delete-an-index.md){% #delete-an-index %}

| Datadog site      | API endpoint                                                           |
| ----------------- | ---------------------------------------------------------------------- |
| ap1.datadoghq.com | DELETE https://api.ap1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| ap2.datadoghq.com | DELETE https://api.ap2.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.eu  | DELETE https://api.datadoghq.eu/api/v1/logs/config/indexes/{name}      |
| app.ddog-gov.com  | DELETE https://api.ddog-gov.com/api/v1/logs/config/indexes/{name}      |
| us2.ddog-gov.com  | DELETE https://api.us2.ddog-gov.com/api/v1/logs/config/indexes/{name}  |
| uk1.datadoghq.com | DELETE https://api.uk1.datadoghq.com/api/v1/logs/config/indexes/{name} |
| app.datadoghq.com | DELETE https://api.datadoghq.com/api/v1/logs/config/indexes/{name}     |
| us3.datadoghq.com | DELETE https://api.us3.datadoghq.com/api/v1/logs/config/indexes/{name} |
| us5.datadoghq.com | DELETE https://api.us5.datadoghq.com/api/v1/logs/config/indexes/{name} |

## [Get indexes order →](https://docs.datadoghq.com/api/latest/logs-indexes/get-indexes-order.md){% #get-indexes-order %}

| Datadog site      | API endpoint                                                     |
| ----------------- | ---------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v1/logs/config/index-order |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v1/logs/config/index-order |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v1/logs/config/index-order      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v1/logs/config/index-order      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v1/logs/config/index-order  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v1/logs/config/index-order |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v1/logs/config/index-order     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v1/logs/config/index-order |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v1/logs/config/index-order |

## [Update indexes order →](https://docs.datadoghq.com/api/latest/logs-indexes/update-indexes-order.md){% #update-indexes-order %}

| Datadog site      | API endpoint                                                     |
| ----------------- | ---------------------------------------------------------------- |
| ap1.datadoghq.com | PUT https://api.ap1.datadoghq.com/api/v1/logs/config/index-order |
| ap2.datadoghq.com | PUT https://api.ap2.datadoghq.com/api/v1/logs/config/index-order |
| app.datadoghq.eu  | PUT https://api.datadoghq.eu/api/v1/logs/config/index-order      |
| app.ddog-gov.com  | PUT https://api.ddog-gov.com/api/v1/logs/config/index-order      |
| us2.ddog-gov.com  | PUT https://api.us2.ddog-gov.com/api/v1/logs/config/index-order  |
| uk1.datadoghq.com | PUT https://api.uk1.datadoghq.com/api/v1/logs/config/index-order |
| app.datadoghq.com | PUT https://api.datadoghq.com/api/v1/logs/config/index-order     |
| us3.datadoghq.com | PUT https://api.us3.datadoghq.com/api/v1/logs/config/index-order |
| us5.datadoghq.com | PUT https://api.us5.datadoghq.com/api/v1/logs/config/index-order |
