Reporting

How can I include an HTML in the footer when sending an email through Splunk infrastructure?

greggz
Communicator

I am sending an email trough splunk infrastructure, it's not related at all with Alarms. I'm just using Splunk to send an email from the dashboard trough Javascript

 var searchSendEmail = "| sendemail to=" + to + " from=" + from + " subject=" + subject +  " message=" + message;
 sendEmail = new SearchManager({
                earliest_time: "-24h@h",
                latest_time:"now",
                search: searchSendEmail
            }).startSearch();

How can I include HTML in the footer so I can apply some branding to my email ? I wanted to put an Image in it. I'm not looking for a pdf solution

niketn
Legend

@greggz, although this does not answer the HTML part, but footer is an optional parameter for sendemail command which you can use to change the default Splunk email Footer text with the footer text of your choice. Refer to the documentation: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sendemail#Optional_arguments

Check out Alert Manager App which allows you to use/modify email template for alerts

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

greggz
Communicator

@niketnilay For some reason that parameter didn't work for me, it didn't overwrite the default.

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...