Getting Data In

When will the scripted input run?

ddrillic
Ultra Champion

We have the following -

[script://.\bin\<name>.bat]
disabled = 0
interval = 86400

Since the interval is 24 hours, when will it run? How can we set the time for it to run?

Tags (1)
0 Karma
1 Solution

MuS
Legend

Hi dddillic,

the interval will start when Splunk was last started. If you want more control over the schedule of your scripted input, use the crontab notation in interval. From the docs http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf :

interval = [<number>|<cron schedule>]
* How often to run the specified command (in seconds), or a valid cron schedule.
* NOTE: when you specify a cron schedule, the input does not run the script on start-up.
* If you specify the interval as a number, it may have a fractional component; e.g., 3.14
* The cron implementation for data inputs does not currently support names of months or days.
* Defaults to 60.0 seconds.
* The special value 0 forces this scripted input to be run continuously;
  that is, as soon as the script exits, the input restarts it.
* The special value -1 causes the scripted input to run once on start-up.

Hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi dddillic,

the interval will start when Splunk was last started. If you want more control over the schedule of your scripted input, use the crontab notation in interval. From the docs http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf :

interval = [<number>|<cron schedule>]
* How often to run the specified command (in seconds), or a valid cron schedule.
* NOTE: when you specify a cron schedule, the input does not run the script on start-up.
* If you specify the interval as a number, it may have a fractional component; e.g., 3.14
* The cron implementation for data inputs does not currently support names of months or days.
* Defaults to 60.0 seconds.
* The special value 0 forces this scripted input to be run continuously;
  that is, as soon as the script exits, the input restarts it.
* The special value -1 causes the scripted input to run once on start-up.

Hope this helps ...

cheers, MuS

ddrillic
Ultra Champion

Much appreciated @MuS.

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...