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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...