How to send all warnings at once via http_post2 #1314
-
I tried aggregation, and the result was that when there were two messages matching, it was sent twice after waiting for the aggregation time. How to aggregate the contents of the two alerts together and only send them once? this is my message
config.yaml
rules/a.yaml
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If the two alerts were for different "level" values then it would make sense that it sent two alerts. If they are for the same "level" value of "Error" then I'm not sure what's going on. You'd need to review the debug logs to better understand what's happening. |
Beta Was this translation helpful? Give feedback.
I suggest reviewing the docs that cover this topic: https://elastalert2.readthedocs.io/en/latest/ruletypes.html#aggregation. Also consider the
any
rule type if you'renum_events
property will be 1.You don't need to specify the
aggregation_key
property since you don't want to separate the alerts.Also, your aggregation time of 50 seconds is tiny compared to the frequency window. Consider adjusting either that value or the timeframe so that the aggregations is a multiple of the timeframe.