query_loki_instant
Run an instant query in Loki using LogQL to get log entries for a specific timestamp, with a configurable result limit.
Instructions
Run a Loki instant query through Grafana datasource proxy.
Args: query: LogQL expression. limit: Maximum number of log lines to return (1–5000, default 100). at: Evaluation timestamp. RFC 3339 or Unix nanosecond string. Defaults to now when omitted.
Returns: JSON payload from Loki with matching log entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||