Getting Data In

Scripted Input - "persistent" script

beaunewcomb
Communicator

Just want to confirm this behavior for a scripted input:

The script I want to call, actually runs perpetually... it calls an API, outputs the data, waits 120 seconds, calls the API again, wash rinse repeat.

What I'm wondering... can I schedule this script, say every 5minutes, and will the scheduler go "script is still running... not starting again"  ... if for whatever reason it stopped, it will just start it again?

Or will it just keep starting multiple instances of the script if it's still running?

 

Labels (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Splunk didn’t check if it is running or not. For that reason you should add this functionality inside the script or use any wrapper which can check that it’s not running already.

r. Ismo

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