victorialogs.query_stats
Run LogsQL aggregation pipelines to group and count log events in VictoriaLogs, returning raw JSON rows with time-range and row limits.
Instructions
Execute a LogsQL aggregation pipeline, e.g. * | stats by (service) count() as errors. Returns original JSON rows without log normalization. Uses /select/logsql/query, not the Prometheus stats API. Default last hour, max 500 rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| limit | No | ||
| query | Yes | ||
| start | No | ||
| filter | No | ||
| offset | No | ||
| rangeSec | No |