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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...