-
Hi! Thanks to jertel's Advice in this discussion, I've managed to edit the text_body of my email thanks to an enhancement. Since then it works fine but the time never changes now. If I start my Elastalert docker container at, let's say 08:12:34, the time given with the function Just in case, here is my module :
I've tried to replace I use the jertel/elastalert2:2 image. Thanks in advance for your help :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are permanently modifying the rule's Make sure you understand the difference between the |
Beta Was this translation helpful? Give feedback.
You are permanently modifying the rule's
alert_text
value. The first time it runs the process() method it is replacing the##1##
and##2##
strings with the timestamps. Now, every subsequent alert's process() invocation will look at the same rulealert_text
but no longer find a##1##
or##2##
. This is because you just modified the original rule itself, instead of the match data.Make sure you understand the difference between the
rule
dict and thematch
dict.