-
Hi, Unsure if this is the desired behaviour, but our workflow for adding rules to ElastAlert is to create a new rule, put it in the folder, then restart ElastAlert, but I see some weird behaviour in the rules, such as I thought realerts were persisted due to ElastAlert saving to the silence index, I'm guessing that is not true? If that is the case, what is the way to add new rules or update rules without "breaking" the functionality of the rules? From this section, there's a mention of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
ElastAlert 2 will auto-detect new rules, and modified rules, so there is no need to restart it. It does this by comparing rule file content hashes, not timestamps. As far as the realert not being respected across restarts, I would expect a rule to remain silenced. When I do my local testing I have to continually change the rule name across restarts to force the alerts to appear, otherwise the alerts remain silenced. It's possible there is something with your particular configuration that prevents this behavior. |
Beta Was this translation helpful? Give feedback.
ElastAlert 2 will auto-detect new rules, and modified rules, so there is no need to restart it. It does this by comparing rule file content hashes, not timestamps.
As far as the realert not being respected across restarts, I would expect a rule to remain silenced. When I do my local testing I have to continually change the rule name across restarts to force the alerts to appear, otherwise the alerts remain silenced. It's possible there is something with your particular configuration that prevents this behavior.