Hi Splunk Community,
I don't want to get technical on this, but I have an alert that I would like to run a .cmd file from when it triggers. This .cmd runs a Splunk CLI script that generates a report which correlates to the alert.
I am assuming that Splunk only recognizes .sh files within the
C:\Program Files\Splunk\bin\scripts directory. Therefore, is there an easy way to execute a .cmd file with a .sh script?
If you are running Splunk on Windows, Splunk will run
.bat scripts instead of
So just write a
.bat script that launches whatever you like!
I was able to successfully create the .bat file. But Splunk still does not run the script. Do I have to add an additional command to run the .bat file in the script field of the alert?
All you should need to do is to put the full path to the script in the right box of the alert actions.