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!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

April 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

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 ...