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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...