query_range
Execute LogQL range queries to fetch logs over specified time windows from Loki, enabling log analysis and troubleshooting.
Instructions
Execute a LogQL range query against Loki to fetch logs over a time window
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Sort order: forward or backward. Defaults to backward | |
| end | No | End of time range (RFC3339 or Unix nanoseconds). Defaults to now | |
| limit | No | Maximum number of entries to return. Defaults to 100, max 5000 | |
| query | Yes | LogQL query expression | |
| start | No | Start of time range (RFC3339 or Unix nanoseconds). Defaults to 1 hour ago |