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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...