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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...