Getting Data In

script to run for the scheduled report

shangshin
Builder

Can the script take parameters?
e.g.
foo.sh arg_1 arg_2 arg_3

Splunk runs the script from $SPLUNK_HOME/bin/scripts/

Tags (1)
0 Karma

jtrucks
Splunk Employee
Splunk Employee

Yes! Details at: http://docs.splunk.com/Documentation/Splunk/5.0.2/alert/ConfiguringScriptedAlerts

Not only can you pass it whatever arguments you want, you can use a variety of environment variables, as well.

--
Jesse Trucks
Minister of Magic
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...