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
SplunkTrust
SplunkTrust

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...