Alerting

How do I display results of a Splunk alert before the message content?

flufy999
New Member

I have an alert that has message content to be sent in an email:

e.g.

Message

Message info here returned about the alert

When the alert triggers the message info is returned followed by the alert.

How do i get the alert info to be returned and the message info (in the message box) to be displayed please?

So

alert 1 results

followed by message info

not:

message

followed by an alert

0 Karma

cmerriman
Super Champion

I think one of the only things you can do is to just add a token into your message body that adds more information about the alert (like $result.fieldname$), but it wouldn't really be swapping them around.
http://docs.splunk.com/Documentation/Splunk/6.5.2/Alert/EmailNotificationTokens

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...