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