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!

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 ...