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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...