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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...