Hi. i want to ask if you guys have any idea how to connect a splunk search to run a python script? What I'm doing is like a machine learning that when the search results have for example "please create a user id for..." the python will run a script that will trigger the script that creates a new user id.
Thank you.
Hello,
You can achieve this using alerts, and in Trigger Actions section choose Run a script.
After you search is completed, click on Save As -> Alert -> Add Actions -> Run a script -> type script name.
Location of script:
$SPLUNK_HOME/bin/scripts
Regards
hello aakwah -
will it run the python script? i will try it. thank you.
Yes, it will run python scripts.
Regards