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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...