Hi,
Currently via the web UI I believe we can only set the interval time for scripted inputs to run.
Is it possible to schedule the script to run at a certain time of a day?say 23:59? instead of intervals?
Yes it is. If you specify interval
as a cron
-type schedule, it will run on that schedule. From inputs.conf.spec
:
interval = <integer>|<cron schedule>
* How often to execute the specified command (in seconds), or a valid cron schedule.
* NOTE: when a cron schedule is specified the script is not executed on start up
* Defaults to 60 seconds.
So you can set:
interval = 59 23 * * *
Yes it is. If you specify interval
as a cron
-type schedule, it will run on that schedule. From inputs.conf.spec
:
interval = <integer>|<cron schedule>
* How often to execute the specified command (in seconds), or a valid cron schedule.
* NOTE: when a cron schedule is specified the script is not executed on start up
* Defaults to 60 seconds.
So you can set:
interval = 59 23 * * *
If I am not mistaken, this is a new feature in 4.1.