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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...