error_clusters
Groups log errors into normalized message templates, collapsing variable IDs, IPs, paths and timings so repeated failures become one cluster with counts, first/last seen and a real example event.
Instructions
Group events at or above level into message templates. Numbers, UUIDs, IPs, hex ids, paths and
URLs are normalised away so 'timeout after 31ms for user 8f2c...' and '... 47ms for user 91ab...'
become one template. For stack traces the exception line is part of the template. Each cluster shows
count, first/last seen, levels and a real example event. Use level='all' to cluster everything.
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": {
"path": "<path>"
},
"name": "error_clusters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | +00:00 | |
| top | No | ||
| path | Yes | ||
| level | No | ERROR | |
| since | No | ||
| until | No | ||
| include_rotated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |