Splunk Enterprise Security

Passing eval to email alert and notables

JJCO
Engager

Howdy,

I'm building out some alerting in Splunk ES, and created a new correlation search.
That is all working, but I'm unable to pass my eval as a value into email alert.


What I have:
| eval alert_message=range.":".sourcetype." log source has not checked in ".'Communicated Minutes Ago'." minutes. On index=".index.". Latest Event:".'Latest Event'
| table alert_message

Just running the search works, the table is there and looks correct.
I've tried variations of $alert_message$ with and without quotes, but the alert_message never gets passed to the email alert.
I haven't tried to generate a notable, but I'm guessing I'll have the same issue.

I feel like I'm missing something easy here...

Labels (2)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Have you tried $results.alert_message$?

---
If this reply helps you, Karma would be appreciated.

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

 Hi @JJCO 

Ensure that you correctly reference your `alert_message` using the correct token syntax. In the email alert settings, you should use `$result.alert_message$`. This assumes that `alert_message` is part of the result set.

Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.
Regards

Will

richgalloway
SplunkTrust
SplunkTrust

Have you tried $results.alert_message$?

---
If this reply helps you, Karma would be appreciated.
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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