elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Format email alert with HTML

Open redhelling21 opened this issue 10 years ago • 3 comments

I wondered if it could be possible to format the email alert with HTML, to make it more readable and less...ugly ?

redhelling21 avatar Feb 04 '16 17:02 redhelling21

If you speak python and are willing to test new code, we've been using this: https://github.com/datacratic/elastalert/blob/datacratic/elastalert/emailjinja.py for a few months now.

It uses jinja to generate the html part of the mail, so you can do pretty much anything you want in the template.

Consider the code beta quality, it fits our usecase, but may not work out of the box for yours.

jraby avatar Feb 04 '16 19:02 jraby

@jraby could you please provide the html code used as a template?

islammohamed avatar Jun 22 '17 16:06 islammohamed

@jraby

Could you please help me to understand how should I use the emailjinja.py to send email alert in proper summary table format. It would be great if you could send me the steps with rule example.

sathishdsgithub avatar Mar 14 '18 06:03 sathishdsgithub