query_logs
Retrieves log records within a UTC time window, newest first, with filters for service, trace ID, and minimum severity plus cursor pagination for large result sets.
Instructions
List log records inside a UTC time window, ordered by timestamp descending. Supports keyset pagination via the 'cursor' returned in 'nextCursor'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Window end (ISO-8601 UTC). Must be strictly greater than 'from'. Required. | |
| from | Yes | Window start (ISO-8601 UTC, e.g. 2026-04-23T12:00:00Z). Required. | |
| limit | No | Maximum records returned. Defaults to QueryApi.DefaultLimit; capped at QueryApi.MaxLimit. | |
| cursor | No | Opaque continuation token returned by a previous call. Pass to fetch the next page. | |
| service | No | Filter by service.name (exact match). | |
| traceId | No | Filter by trace id (32-char lowercase hex). | |
| minSeverity | No | Filter records with severity_number >= this value (OTLP 0-24). |