Can a UF run a script? If so, is there any way to control when it runs?
You can use a cron-like schedule in the "interval" field of the scripted input, see the docs at the link below.
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.
8 years later, the link is broken 😞
New working link that always point to latest version 🙂https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup
Thank you, both these links helped me in achieving my desired output.