Getting Data In

Script Input to be triggered only whenever the script is not running

deepthi5
Path Finder

Hello Team,

I am having a python script that runs without exiting the while loop so this configured as scripted input in splunk

[script://......]

As this as non exit script i dont want to use interval=X seconds and trigger it for every certain interval but wanted to trigger it whenever this script is not running any idea please

Tags (2)
0 Karma

sbbadri
Motivator

Below idea might help you. But consider about performance

1) Create another script to monitor existing python script.Map a new script to saved search and scheduled it for every minute. In search string give as "|noop". Check the perfomance
2) Create a bash script to execute exsting python script and assign to cron tab.

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...