For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/fr/api/latest/logs-archive-searches.md. A documentation index is available at /llms.txt.
Language
Datadog site

Logs Archive Searches

Archive Search queries logs directly from long-term storage archives without prior rehydration and charges only for the data scanned.

A search runs in one of two modes. By default, it scans the archive and retains up to 100,000 matching logs for 24 hours on a dedicated results page. Include a rehydration object to run a Search & Rehydration instead, which retains the matches for a longer custom retention period and makes them available beyond Log Explorer, such as in Dashboards and Notebooks.

A search requires the logs_write_historical_view or logs_write_archive_search permission. Rehydration requires logs_write_historical_view.

POSThttps://api.datadoghq.com/api/v2/logs/archive_searcheshttps://api.us3.datadoghq.com/api/v2/logs/archive_searcheshttps://api.us5.datadoghq.com/api/v2/logs/archive_searcheshttps://api.datadoghq.eu/api/v2/logs/archive_searcheshttps://api.ap1.datadoghq.com/api/v2/logs/archive_searcheshttps://api.ap2.datadoghq.com/api/v2/logs/archive_searcheshttps://api.uk1.datadoghq.com/api/v2/logs/archive_searcheshttps://api.ddog-gov.com/api/v2/logs/archive_searcheshttps://api.us2.ddog-gov.com/api/v2/logs/archive_searches
GEThttps://api.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.us3.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.us5.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.datadoghq.eu/api/v2/logs/archive_searches/{archive_search_id}https://api.ap1.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.ap2.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.uk1.datadoghq.com/api/v2/logs/archive_searches/{archive_search_id}https://api.ddog-gov.com/api/v2/logs/archive_searches/{archive_search_id}https://api.us2.ddog-gov.com/api/v2/logs/archive_searches/{archive_search_id}