Dec 10, 2020
In ElastAlerts how to add frequency to each rule.
In watcher alerts we can configure the alert triggering frequency as per below.
So each alert has it’s own frequency.
{
"trigger": {
"schedule": {
"interval": "2m"
}
},
However in ElastAlerts there is no dedicated feature for that all alerts have the frequency which mentioned in config file.
What’s the solution for above question?
In ElastAlert v0.2.2, they have provided a limit_execution feature. In that we can define a cron expression. Since I wanted to run at every 15 minutes , I used 0/15 * * *
limit_execution: "0/15 * * * *"
Further reading-
Refer -https://github.com/Yelp/elastalert/issues/492
Release note-https://github.com/Yelp/elastalert/blob/master/changelog.md
Free online cron expression validator-https://crontab.cronhub.io/