Getting Data In

Can a universal forwarder run a script? If yes, is there a way to control when it runs?

a212830
Champion

Hi,

Can a UF run a script? If so, is there any way to control when it runs?

sowings
Splunk Employee
Splunk Employee

You can use a cron-like schedule in the "interval" field of the scripted input, see the docs at the link below.

http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/Inputsconf

somesoni2
Revered Legend

YOu can configure a scripted input in UF, so yes it can run a script. And you can specify the interval it should run in the inputs.conf.
See this
http://docs.splunk.com/Documentation/Splunk/6.1.3/AdvancedDev/ScriptSetup

unitedmarsupial
Path Finder

8 years later, the link is broken 😞

0 Karma

hettervik
Builder

New working link that always point to latest version 🙂

https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup

0 Karma

aruncse83
Explorer

Thank you, both these links helped me in achieving my desired output.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...