Stats Query
stats_queryQuery numeric field statistics in Loggly logs by specifying a stat type and field to calculate averages, sums, percentiles, or counts.
Instructions
Calls /apiv2/stats/<stat_type>/ for numeric field statistics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stat_type": "<stat_type>",
"field": "<field>"
},
"name": "stats_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | -24h | |
| field | Yes | ||
| query | No | * | |
| until | No | now | |
| account | No | ||
| stat_type | Yes |