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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...