Open Alexwii opened 7 years ago
In my case Elastalert sends emails in the Text
mode and i don't think you can force a specific font there.
I will am create an alert in HTML, thank for your answer !
@Alexwii if you do manage to create a html alerter please share it here in case someone else gets the same problem!
Yes of course :)
Could you share how you accomplished this? I have pretty much the same wish.
I can, but it's not perfect, I should have work again on this. I post this when I think it will be ready but I have not time.
I am trying to style my Elastalert alerts with html coding and I can't seem to get it working. @Alexwii did you mange to get your html code working?
It's not perfect but it's works. But I need a little time for continue to perfect him.
@Alexwii
Could you please share the example of html alert email rule ? And the output
@Alexwii ah I understand. I haven't managed to get anything close to working though, if possible can you share your working code, even if not perfect; and I will also work on it to try help get it better.
@sathishdsgithub I don't understand your question ? @LAChristopher Yes, if I have time today, I will upload it here
@Alexwii thank you so much, really appreciate it.
@Alexwii
Did you manage to get the proper format of the summary_table_field in email output? I'm also experiencing the same issue. My email output looks ugly, also I get more blank spaces in the bottom of the outlook email.
Yes I fix it.
But I have not the time for share it here, because I need to write a documentation and I have a lot of work this month.
Maybe end of august... I'm sorry for that.
@Alexwii
Thanks for the update. Meanwhile, could you please share at least the steps to get the proper output with creating an alert in HTML
@LAChristopher @nejczupan @AnderssonPeter
For those looking for a decent table in email output, you can import the below alerts.py and give it a try. It gives a pretty table output. It uses the python from prettytable import PrettyTable
https://github.com/qianghaohao/elastalert/blob/master/elastalert/alerts.py
Thanks to @qianghaohao for helping this accomplish.
@sathishdsgithub thanks so much... will look into it. Really looking for how to change text, add logos, etc. Basically how to make the e-mail alert look good, so something that uses HTML code and not plain text.
Guys check this issue: https://github.com/Yelp/elastalert/issues/391 It works pretty well for me. Hope it helps
Hello everyone,
Thank you so much for Elastalert, it's beautifuf and very powerful.
I have a problem, when I want use "summary_table_fields" my mail look like this:![tableau](https://cloud.githubusercontent.com/assets/3111142/21989352/db2be832-dc0a-11e6-9e39-d32221b62575.PNG)
And the problem it's that the font is not appropriate for the table.
It's not possible to specify at Elastalert to use a font like consolas ?
Thank you so much for your answer