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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...