Splunk Search

Help with sending multiple $result

LizAndy123
Path Finder

So I have successfully configured some reports and alerts that send the $result to Mattermost.

My question is how to deal with a search which returns maybe 5 results?

Example - Current search may return - Example Text : Hello World

How do I pass each individual  $result ?

So Search could return Hello World followed by Hello World2 followed by Hello World3 

If I put $result.text$ it prints Hello World but if I want to then show the second result or 3rd...is it possible through this>?

Labels (3)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @LizAndy123 

When configuring your alert, select it to run "For each result" under the Trigger setting as per the screenshot below:

livehybrid_0-1750696423295.png

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...