aggregate_logs
Count log entries grouped by level, source, status, or route over a recent window to spot error-rate and status-code trends in local logs.
Instructions
Count log entries grouped by a dimension over a recent window. Call this to spot trends, e.g. error rate or status-code distribution.
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": {
"group_by": "<group_by>"
},
"name": "aggregate_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source name from list_sources, e.g. 'app'. Omit to use all sources. | |
| minutes | No | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. | |
| group_by | Yes | Dimension to group counts by. |