-
We moved to Elastalert2 from Elastalert quite some time ago, (thank you for keeping this project going!) and have implemented it across just shy of a dozen different SIEM systems where we are running Wazuh-Indexer 4.7.5, which is based on Opensearch 2.8.0. It seems to be working as expected from what we can tell as we get email and slack alerts from our rules, however, I notice that there is an error upon every 5 minute run through the rules in /var/log/elastalert.log on each of our implementations of Elastalert2 as follows:
Directly after this error, it cycles through the rules and triggers alerts as we would otherwise expect. I've done some looking around via Google and on this forum and I found some suggestion about adding Any help or suggestions would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It looks like the elastalert_* indices are incorrect. You can diagnose this and inspect the indices to see what type of field If you're not using the container you will need to manually run the |
Beta Was this translation helpful? Give feedback.
So, not only were mappings not in place for the elastalert_status index, but we also found that no documents were being written to the index when alerts were triggered, as we observe on other hosts where Elastalert is working properly.
So, I pulled the mappings from a host were Elastalert2 was not giving these errors and manually put the mappings in place. After doing this, restarting the Elastalert docker container and waiting a few minutes for the second check of the rules, the error I first mentioned above no longer occurred.
However, even with that, events were still not being written to the elastalert_status index when an alert was generated.
Then I found, our email facility, Postfix…