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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...