Canonical: https://weaveos.com/reference/datadog/search-log-events

1. [Software capabilities](https://weaveos.com/reference)
2. /[Datadog](https://weaveos.com/reference/datadog)
3. /Search Datadog log events

[![](https://weaveos.com/reference/logos/datadog.svg)Datadog](https://weaveos.com/reference/datadog)

# Search Datadog log events

Use Datadog’s Logs Search API to read matching logs in a fixed time window. To continue, copy meta.page.after from the response into page.cursor on the next request.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: POST /api/v2/logs/events/search](https://weaveos.com/reference/datadog/search-log-events#method-1)
2. [2Interface: Logs Explorer search](https://weaveos.com/reference/datadog/search-log-events#method-2)

API

### POST /api/v2/logs/events/search

Search indexed log events by query, time range, storage tier, and page cursor.

[Read source: Datadog search logs API](https://docs.datadoghq.com/api/latest/logs/search-logs-post/)

- Requirements

  A Datadog API key and an application key with logs\_read\_data permission for the selected logs, plus the Datadog site domain.

- Limitations

  Reuse the original search window and sort when passing page.cursor. Resolve relative times to fixed timestamps for a multi-page read.

Example shell

Copy

```
curl --fail -X POST "https://api.$DD_SITE/api/v2/logs/events/search" -H "DD-API-KEY: $DD_API_KEY" -H "DD-APPLICATION-KEY: $DD_APP_KEY" -H 'Content-Type: application/json' -d '{"filter":{"query":"service:web status:error","from":"2026-11-27T00:00:00Z","to":"2026-11-27T01:00:00Z","indexes":["main"]},"page":{"limit":100}}'
```

Interface

### Logs Explorer search

Use Logs Explorer to apply the same query and time window, inspect facets, and export a bounded result.

[Read source: Datadog Logs Explorer search](https://docs.datadoghq.com/logs/explorer/search/)

- Requirements

  A Datadog user with access to the relevant logs and indexes.

- Limitations

  The UI view is bounded by the selected time range, retention, and export limits. It does not replace a full archive export.

Example text

Copy

```
Logs → Explorer → query: service:web status:error → time range: past 1 hour
```

[Previous Datadog taskFind alerting Datadog monitors by tag](https://weaveos.com/reference/datadog/find-alerting-monitors-by-tag)

## More from Datadog

[View all 2 Datadog tasks](https://weaveos.com/reference/datadog)
