Other Usage

Prepending String to All Email Subjects

fredclown
Builder

Does anyone have a creative solution or know if there is an obscure way in Splunk to prepend a certain string to the beginning of email subjects that are sent from Splunk? I'm looking for something that users could not override when they create an alert or report. I do know about the email footer option in the email setup screen to add a static footer that cannot be altered by users and we do employ that as well. I'm trying to do something like this with the email subject. Thanks.

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@fredclown - Email is just an alert action that comes default with Splunk. As you mentioned currently there is no option to prepend in the subject.

  • You could raise as improvement in Splunk at https://ideas.splunk.com/
  • Or you could have your own custom Splunk alert action for email with all the same options, but there of course you could specify whatever subject you want in your own Python code. But somehow you would have to disable Splunk's built in Email action, so people don't use that to bypass your rule.

 

I hope this helps!!! Kindly upvote if it does!!

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

it's just like @VatsalJagani said. 

What is the issue which you try to solve with this Fixed header part? Maybe there is another solution which you could use to achieve your objectives?

r. Ismo

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...