Alerting

How to send search results of an alert to a script?

kinguchiha
New Member

Hi guys. Here's what I want to do:

I made an alert that triggers if a new computer is found.

I want to send the results (IP MAC etc.) to my script.

I learned how to make a custom search command, but I don't know how to send the results as args. Any advice?

0 Karma

woodcock
Esteemed Legend

Why are you using a custom command? Why not create a custom alert action or script? In any case, this might help (but probably not):

https://answers.splunk.com/answers/41949/passing-search-results-to-external-python-script.html

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...