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.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

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