Splunk Search

How to get the row text from inputlookup in a variable for email alert

mbreton
Engager

HI!

I am using a CSV file to catch some alerts, and that part works fine, I catch all my alerts.

index="main"  [inputlookup linux_alerts.csv | table AlertMsg | rename AlertMsg as search | format ]

The file goes like this:
AlertMsg
Some alert text 1
Some alert text 2
Some other stuff

What I would like is when one of these row is triggered to have it in a variable for the body of the email. Something like $result.AlertMsg$

Thanks

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...