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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...