jertel / elastalert2

ElastAlert 2 is a continuation of the original yelp/elastalert project. Pull requests are appreciated!
https://elastalert2.readthedocs.org
Apache License 2.0
859 stars 277 forks source link

I have a question about silent alarms. #1372

Closed jointigers closed 5 months ago

jointigers commented 5 months ago

If I have multiple rules that need to be filtered, and each rule has a different silent period every day, how should I configure it?

--rule will only run the given rule. The rule file may be a complete file path or a filename in rules_folder or its subdirectories.

--silence = will silence the alerts for a given rule for a period of time. The rule must be specified using --rule. is one of days, weeks, hours, minutes or seconds. is an integer. For example, --rule noisy_rule.yaml --silence hours=4 will stop noisy_rule from generating any alerts for 4 hours.