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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...