Alerting

Passing result.<fieldname> token

abi2023
Path Finder

I want my send email action email body to be in table view as my search result.
How do I pass dynamic token field value. 

$result.name$ $result.index$$result.sourcetype$


how do I make field value come side by side instead of below.
 how I am getting now in my email body 
name
name2
name3
name4
index
index2
index3
index4
sourcetype
sourcetype2
sourcetype3
sourcetype4

I want to be like below.

name index sourcetype
name2 index2 sourcetype2
name3 index3 sourcetype3
name4 index4 sourcetype4



Is it possible to do

Labels (2)
Tags (1)
0 Karma

marnall
Motivator

In Email alerts, there is a checkbox for "Inline", which would put the search results table into the body of the email.

If you would like more control over it, you could do some SPL magic to make a single field containing the html for a table in the arrangement you want, then put that field in the body.

0 Karma

abi2023
Path Finder

Can this work for passing value to Splunk add on for Servicenow. Description section.
Thank you 

0 Karma

marnall
Motivator

I don't have experience with that particular app but in theory it should work. Give it a try!

0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...