This feature shows in release documentation as deprecated, but this document calls it internal/unsupported/experimental. Splunk will support this feature until/unless it is removed (removal would be documented in release notes). The functionality to use scripted trigger actions is still in place as of Splunk 10.0. Splunk suggests instead using custom alert actions from an app context.
Syntax has changed for this command, using this feature may encounter error messages like these in splunkd.log if their syntax has not yet been updated:
12-15-2022 16:12:58.871 -0600 ERROR script [1349494 SchedulerThread] - SearchMessage orig_component=script sid=AlertActionsRequredFields_1671142378.1829 message_key=EXTERN:RUNSHELLSCRIPT_INVALID_SID__%s message=Invalid search ID ''. 12-15-2022 16:12:58.871 -0600 ERROR script [1349494 SchedulerThread] - Script execution failed for external search command 'runshellscript'. 12-15-2022 16:12:58.871 -0600 WARN SearchScheduler [1349494 SchedulerThread] - addRequiredFields: SearchProcessorException is ignored, sid=AlertActionsRequredFields_1671142378.1829, error=Error in 'script': Script execution failed for external search command 'runshellscript'
Options (choose one):
runshellscript <script-filename> <result-count> <search-terms> <search-string> <savedsearch-name> <description> <results-url> <deprecated-arg> <results_file>to
runshellscript <script-filename> <result-count> <search-terms> <search-string> <savedsearch-name> <description> <results-url> <deprecated-arg> <search ID> <path to results_file (deprecated-arg)>
/local/savedsearches.conf file -- add to the stanza for the saved search associated with the affected 'run a script' trigger action.| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |