Getting Data In

scripted input to run at top of minute

aaronkorn
Splunk Employee
Splunk Employee

Is it possible to tell Splunk to run a scripted input every 5 min at the top of the minute. Ie Script run at 11:05:00 then 11:10:00? We are running into issues with timeranges and overlap.

0 Karma
1 Solution

JSapienza
Contributor

Simple:

[script://$SPLUNK_HOME\etc\apps\AppName\bin\ScriptName.cmd]
interval = */5 * * * *
sourcetype = MySourceType

View solution in original post

JSapienza
Contributor

Simple:

[script://$SPLUNK_HOME\etc\apps\AppName\bin\ScriptName.cmd]
interval = */5 * * * *
sourcetype = MySourceType

bmacias84
Champion

Thought about using a modular input where your input can check time ever often.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...