I just created a script, which will reload a Splunk Add-On. Unfortunately, my savedsearch cannot run the script.
Its location is
/bin/scripts/restart_amqp.py, so it's a python script. I also introduced some logging to see when it is started. If I run it with
splunk cmd python scripts/restart_amqp.py it works fine and does what it should do.
My Splunk is running on Windows server 2008.
Did you check the windows event log for errors? There are some special things to consider if you try to run scripted inputs from a universal forwarder on windows, this my perhaps apply here as well. I would also check the logs from Splunk in ../var/log/splunk