graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Multiple Alerts not fired when Repeat Notifications enabled for multiple messages

Open mbom2004 opened this issue 9 years ago • 4 comments

Created a Field Content Alert condition with the Repeat Notifications box enabled to send a notification each time the condition is evaluated. However, when two separate messages in the same stream, which meet the condition within a small time window, only one notification is created.

Expected Behavior

With the Repeat Notifications option enabled, a separate alert should be sent each time the condition is met.

Context

We are creating one stream for data and firing alerts from this stream. There will be instances where multiple messages in a stream meet a condition within a short time period. It would be ideal to have the condition fire an alert each time a condition is met, regardless of time frame.

Your Environment

  • Graylog Version: 2.2.2

mbom2004 avatar Mar 29 '17 19:03 mbom2004

That time is controlled in your server.conf

https://github.com/Graylog2/graylog2-server/blob/2.2.2/misc/graylog.conf#L437-L439

Alarms are more like a scheduled search not a wire on the stream that alarm on insert.

jalogisch avatar Mar 30 '17 08:03 jalogisch

We want to create separate alerts for each message that meets the condition within the alert_check_interval. So if our alert_check_interval is 10 seconds and 5 messages come in which meet a condition, we want 5 separate alerts created. Currently only 1 alert is created. Is this possible?

mbom2004 avatar Mar 30 '17 13:03 mbom2004

hej @mbom2004

that is not in the way possible you like to have it. To get clarification what is possible you should probably re-read the documentation of alerts.

regards Jan

jalogisch avatar Mar 30 '17 14:03 jalogisch

Will do, thank you for the quick response.

mbom2004 avatar Mar 30 '17 14:03 mbom2004