query_logs
Search service logs within a time window, filter by log level, and grep for substrings like trace IDs or error codes. Newest entries returned first.
Instructions
Search a service's logs within a time window.
Use level="ERROR" to skip the noise, and contains to grep for a
substring (a trace id, "timeout", an error code). Returns newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| limit | No | ||
| service | Yes | ||
| contains | No | ||
| since_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |