Compare periods
compare_periodsCompares two Graylog log periods to show new, increased, gone, or decreased error groups, normalized per hour. Use it to spot regressions or improvements after a deploy or between windows.
Instructions
Compare two periods (default: last window vs the one before; or around split_at). Lists groups that are new, increased, gone or decreased, normalised per hour. Defaults to errors only.
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_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Groups to return | |
| query | No | Extra Lucene filter | |
| window | No | Length of each period when using split_at or the default | 1h |
| streams | No | Stream titles or ids; default the repository's focus, else all. ['*'] for everything | |
| group_by | No | 'exception', 'logger', 'source' or any field | exception |
| instance | No | Instance from describe, e.g. 'payment/prod'; the default when omitted | |
| split_at | No | Point in time (e.g. a deploy); compares [split-window, split] with [split, split+window] | |
| current_to | No | Explicit current period end; default now | |
| baseline_to | No | Explicit baseline end | |
| errors_only | No | AND the configured error query (default true) | |
| current_from | No | Explicit current period start | |
| baseline_from | No | Explicit baseline start |