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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...