Skip to content

Commit

Permalink
Merge pull request #1588 from nicolasnovelli/master
Browse files Browse the repository at this point in the history
Add `aggregation_alert_time_compared_with_timestamp_field` documentation
  • Loading branch information
jertel authored Dec 4, 2024
2 parents fdd7edb + afad5d7 commit d400d00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- None

## Other changes
- None
- [Docs] Add missing documentation of the `aggregation_alert_time_compared_with_timestamp_field` option. - [#1588](https://github.com/jertel/elastalert2/pull/1588) - @nicolasnovelli

# 2.22.0

Expand Down
11 changes: 11 additions & 0 deletions docs/source/ruletypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,17 @@ aggregate_by_match_time
Setting this to true will cause aggregations to be created relative to the timestamp of the first event, rather than the current time. This
is useful for querying over historic data or if using a very large buffer_time and you want multiple aggregations to occur from a single query.

aggregation_alert_time_compared_with_timestamp_field
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

``aggregation_alert_time_compared_with_timestamp_field``: This option controls how aggregation works when a rule processes events
older than ``current time - aggregation window`` and ``aggregate_by_match_time`` is set to true. Defaults to false.
When false, the expected send timestamp of the pending alert (waiting for additional events to aggregate) is compared with the current time.
As a result, following events will not be aggregated with the pending alert, because it is considered already notified,
leading to past events being notified one by one instead of being grouped together.
When true, it allows the aggregation of events with old timestamps, as long as they are within the aggregation window.
(Optional, boolean, default false)

realert
^^^^^^^

Expand Down

0 comments on commit d400d00

Please sign in to comment.