Deployment Architecture

Can we run a Unix script using splunk


I have created a new Unix script. So daily manually I am running the script. So I want to know whether can we run that script in splunk

Tags (1)
0 Karma


If the script is producing output that will be indexed by Splunk then, yes, you can and should let Splunk run it for you. It's called a "scripted input". Go to Settings->Data inputs->Scripts and click on New Local Script. Answer the questions in the wizard and your script will run as directed with all output sent to the selected index.

If the script is not intended for consumption by Splunk then run it using the Unix cron utility.

If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...