Dears ,
i have more then 400 rule, can i centralize the email configuration in a separate file and call it from the rule it self, ( like the auth email file we call a file that contain the credentials)
You can put email configuration into the global config.yaml file and it will apply to all the rules.
Also, you can import other files into rules if you want to separate out the email config: https://elastalert.readthedocs.io/en/latest/ruletypes.html#optional-settings
thank u guys
Most helpful comment
You can put email configuration into the global config.yaml file and it will apply to all the rules.
Also, you can import other files into rules if you want to separate out the email config: https://elastalert.readthedocs.io/en/latest/ruletypes.html#optional-settings