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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...