query_loki_logs
Query Loki logs with LogQL syntax and advanced filtering to correlate logs, metrics, and traces across services.
Instructions
Query logs from Loki with advanced filtering and analysis.
This tool provides powerful log querying capabilities using Loki's LogQL syntax, enabling correlation between logs, metrics, and traces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of log entries to return (1-1000) | |
| query | Yes | LogQL query string (e.g., '{job="my-service"} |= "ERROR"') | |
| end_time | No | End time for query (ISO format or relative) | |
| start_time | No | Start time for query (ISO format or relative like "1h", "24h") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||