compare_windows
Compare error templates across two log windows to identify new, spiked, or disappeared errors, showing what changed or broke recently.
Instructions
What changed? Compare error templates between window A (baseline) and window B. Reports templates
that are NEW in B, SPIKED in B (event rate at least spike_factor times A's, normalised if the windows
differ in length), and GONE. With no window arguments, B is the last window (default 1h) of the logs and A
is the equal-length window just before it - ideal for 'what broke just now'.
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": "compare_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | +00:00 | |
| top | No | ||
| path | Yes | ||
| level | No | ERROR | |
| window | No | 1h | |
| a_since | No | ||
| a_until | No | ||
| b_since | No | ||
| b_until | No | ||
| min_count | No | ||
| spike_factor | No | ||
| include_rotated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |