Aggregate stats over a LOG store
rootr_log_statsCompute aggregate statistics (count, avg, max, min, sum) on log entries grouped by hour, day, source, or level to analyze trends without retrieving raw data.
Instructions
Compute aggregate statistics over a LOG store's entries, grouped by hour/day/source/level, with a metric of count/avg/max/min/sum (avg/max/min/sum require a numeric field). Useful for trend/volume questions without pulling raw entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO timestamp upper bound | |
| from | No | ISO timestamp lower bound | |
| field | No | Numeric field name, required for avg/max/min/sum | |
| logId | Yes | LOG store node id | |
| metric | No | count | avg | max | min | sum | |
| groupBy | No | hour | day | source | level |