I set up an alert to trigger a script (sample "
The alert fired normal, but the script was not executed.
When I check the splunkd.log, it says:
ERROR ScriptRunner - Couldn't start child process. script="E:\Program Files\Splunk\etc\apps\search\bin\runshellscript.py" ERROR script - Script execution failed for external search command 'runshellscript.'
I tried to add python.exe path to
%PATH, but it didn't help, strange.....
windows: server 2008 64-bit
It sounds like it may be the timezone bug that 4.3 has. It was fixed in 4.3.2 and it relates to Splunk firing scripts.
To test do the following;
Navigate to Manager in the top right, select Your Account in the bottom right, change the timezone to, "Default System Timezone". Hit save and try again.
If that works then it is that bug that is affecting you.
If I set the timezone to default, the splunk page will report a common error "str object.....", anyway I will try it, thanks!
when I set the timezone to default, the splunk page shows "AttributeError: 'str' object has no attribute 'os_startIndex'"
Hi Mario, Yes I tried in search bar "xxxx | runshellscript echo.bat arg1 arg2.....", but it reported the runshellscript returned error 1