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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...