build_logql_query
Construct LogQL queries for Loki log analysis by specifying label selectors, filters, operations, and time windows to extract insights from log data.
Instructions
Help build a LogQL query with suggestions for log stream selectors and filters
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | Label selectors as key-value pairs (e.g., {"job": "nginx", "level": "error"}) | |
| filter | No | Log line filter pattern (regex or contains) | |
| operation | No | LogQL operation/function to apply | |
| timeWindow | No | Time window for operations (e.g., "5m") | |
| filterType | No | Type of filter to apply | contains |