How to send previous day aggregation results at onetime over the mail? #385
-
Hi All, Is there any option to send the previous day aggregation results at onetime over the mail? Please let me know if any options available. Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
This might help: https://elastalert2.readthedocs.io/en/latest/ruletypes.html?highlight=aggregate#aggregation |
Beta Was this translation helpful? Give feedback.
-
Hi @jertel , Could you please help me on the below? scheduled aggregation adding multiple alerts messages into the mail instead of aggregated all the alerts results into a single result and adding to the email alert. And also I see that the query rule is running for every 5 mins interval.. Is there any option to run the rule query once in a day and attached the complete results to the email one time? Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you @jertel for the update. I have added the run_Every but I am not receiving the email after added the run_every and below is my rule config file. Please let me know if I messed another parameters here.
Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you @jertel. Now, I am receiving the alerts after added the run_every. But, I am receiving the mails for last 24 hours for every alternative days instead of daily. Note: I have removed the "use_count_query" from the rule and noticed that the reports are not accurate without "use_count_query: true". run_every: **################### Elasticsearch Parameters ##################### ################### Rule Configuration Details ##################### index: "indexapi*"
######## Custom Parameters ####### #################### Alerting Details ####################
Please let me know if I missed anything here. Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
This might help: https://elastalert2.readthedocs.io/en/latest/ruletypes.html?highlight=aggregate#aggregation