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

# Logs Indexes

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

## Get all indexes →{% #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  |
| 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 →{% #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}  |
| 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 →{% #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  |
| 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 →{% #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}  |
| 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 →{% #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}  |
| 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 →{% #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  |
| 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 →{% #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  |
| 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 |
