datadog_logs_search
Search Datadog logs using query filters and time ranges, with configurable sort order and automatic pagination up to 10,000 results.
Instructions
Search Datadog log events. limit of 0 (or omitted) auto-paginates across cursor pages up to 10000; any non-zero value caps the total at that count. sort is timestamp-asc or timestamp-desc (default). Mirrors omni-dev datadog logs search. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | Datadog logs query (e.g. `service:api status:error`). | |
| from | No | Start of the time range. Accepts relative shorthand (`15m`, `1h`), `now`, RFC 3339, or Unix epoch seconds. Defaults to `15m` when omitted. | |
| limit | No | Maximum events to return. `0` means "fetch every match across pages (capped at 10000)"; any non-zero value caps the total at that count, paginating underneath as needed. Defaults to 100. | |
| sort | No | Sort order: `"timestamp-asc"` (oldest first) or `"timestamp-desc"` (newest first; default). | |
| to | No | End of the time range. Defaults to `now` when omitted. |