_reduced_count: 10000 — cutting storage costs without losing information.
Quick start
error_code and flushes each group after 5 seconds.
How it works
- Events are grouped by the fields you specify in
group_by - When a group reaches
max_eventsor the time window expires, it flushes - The first event in each group is emitted with metadata fields added:
_reduced_count— how many events were consolidated_reduced_span_ms— time span from first to last event in the group
min_events pass through unchanged — no metadata is added.
Grouping
Thegroup_by field controls what counts as “similar.” Events with the same values for these fields land in the same group.
group_by is empty, events are grouped by their entire content — only exact duplicates are consolidated.
Examples
Collapse error storms:Reference
| Field | Default | Description |
|---|---|---|
type | — | "reduce" |
group_by | [] | Fields to group by (empty = exact content match) |
window_ms | 5000 | Time window in milliseconds before flushing a group |
max_events | 1000 | Maximum events per group before forced flush |
min_events | 2 | Minimum events to apply reduction (below this, events pass through unchanged) |
enabled | true | Set to false to disable |