Alerts occuring every minute in a single mail
Hello , I am new to elastalert. I am trying to set up alerts where i want all the alerts generated in the duration of one minute should be compiled and sent in a single mail. I want this to repeat every minute. Is it possible? Can you help me with this. Thank you in advance.
This code works perfectly fine, but doesn't give the output the way I want. Currently I am getting different mails for the failed requests. For eg: If two requests with "Name"- abc and one with "Name"- xyz is failing in the duration of one minute, I am getting one mail for abc and one for xyz. But i want an alert that mentions both abc and 'xyz' failed requests for the duration of one minute in a single email.
Here I am sharing my code:
type: "frequency" filter:
- query: query_string: query: "result:FAILURE"
num_events: 1 timeframe: seconds: 30
alert_text: "{0} failed, reason {1}" alert_text_type: exclude_fields alert_text_args:
- Name
- Message alert_subject: "Failure message" alert:
- "email" email:
- "[email protected]" aggregation: minutes: 1 aggregation_key: "Name" realert: minutes: 0
Solved it myself
how you solved it sir ?