compare_windows
Compares a recent access-log window against an earlier baseline window to surface the biggest increases per field, revealing traffic spikes and surges.
Instructions
What changed? Compare the last minutes against the same-length window baseline_minutes_ago
earlier (default: same time yesterday), for one access-log field (SRC_IP, RSP_CODE, REQ_PATH,
COUNTRY, ASN, AUTHORITY...). Sorted by biggest increase. Use for spikes and surges.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lb | No | ||
| topk | No | ||
| field | No | SRC_IP | |
| query | No | ||
| minutes | No | ||
| namespace | No | ||
| baseline_minutes_ago | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |