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!

Observability Unveiled: Navigating OpenTelemetry's Framework and Deployment Options

Observability Unveiled: Navigating OpenTelemetry's Framework and Deployment Options A recent Tech Talk, ...

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...