Alerting

Formatting alert emails

Branden
Builder

The e-mail that an alert sends out isn't the prettiest e-mail in the world. It produces a pretty-wide HTML table with fields that we don't need.

Is there a way to customize the e-mail output? I think someone asked a similar question on here a while ago, and the answer involved modifying a python script. I'd prefer not to go that route...

Thanks!

Tags (2)

woodreamz
New Member

You should try to edit the sendemail.py. Mails are created and sent by this script.

The best way is to duplicate the script and modify all you want and use this script with your alert. I am working on the script to modify the format too 🙂

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

As for removing fields, you should modify the search that generates the alert and add in the fields fieldname1 fieldname2 ... search command (and maybe also fields - _*) to select and order the fields you want included.

Branden
Builder

I'll give that a try, thanks!

0 Karma

Brian_Osburn
Builder

There's no way to currently do this. I have submitted an enhancement request for this. If you submit one, it'll be more likely this feature gets added.

Branden
Builder

Then I shall do so, thanks!

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...