---
title: ログアーカイブ
description: アーカイブでは、取り込まれたすべてのログがクラウドストレージシステムに転送されます。 詳細については、アーカイブページ を参照して、 Datadog で現在構成されているアーカイブの一覧をご確認ください。
breadcrumbs: ドキュメント > API > ログアーカイブ
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/llms.txt).

# ログアーカイブ

アーカイブでは、取り込まれたすべてのログがクラウドストレージシステムに転送されます。

詳細については、[アーカイブページ](https://app.datadoghq.com/logs/pipelines/archives) を参照して、
Datadog で現在構成されているアーカイブの一覧をご確認ください。

## [すべてのアーカイブを取得する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/get-all-archives.md)

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

## [アーカイブを作成する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/create-an-archive.md)

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

## [アーカイブを取得する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/get-an-archive.md)

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

## [アーカイブを更新する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/update-an-archive.md)

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

## [アーカイブを削除する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/delete-an-archive.md)

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

## [アーカイブの読み取りロールを一覧表示する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/list-read-roles-for-an-archive.md)

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

## [アーカイブにロールを付与する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/grant-role-to-an-archive.md)

| Datadog site      | API endpoint                                                                        |
| ----------------- | ----------------------------------------------------------------------------------- |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/logs/config/archives/{archive_id}/readers      |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/logs/config/archives/{archive_id}/readers      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/logs/config/archives/{archive_id}/readers  |

## [アーカイブからロールを取り消す](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/revoke-role-from-an-archive.md)

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

## [アーカイブの順序を取得する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/get-archive-order.md)

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

## [アーカイブの順序を更新する](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ja/api/latest/logs-archives/update-archive-order.md)

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