I am trying to schedule a job that runs every 5 minutes starting at 1 a.m. and ending at 11 p.m. Here's the expression I am planning to use,
0 0/5 1-23 ? * * *
I have minimal knowledge in cron but based on the JDBC input plugin documentation it uses rufus scheduler whereas the syntax above is more suited towards quartz.
I do understand quartz != cron but what's not clear is would the expression be acceptable for logstash. If not, is there a way to achieve the same behavior with rufus scheduler?
Edit: The expression above doesn't work, logstash throws following error (in log files),
Input plugin raised exception during shutdown, ignoring it. {:plugin=>"jdbc",
:exception=>"not a valid cronline : '0 0/5 1-23 ? * * *'", :backtrace=>[
"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/cronline.rb:61:in
`initialize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/jobs.rb:604:in
`initialize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler.rb:629:in
`do_schedule'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler.rb:244:in
`cron'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jdbc-4.3.1/lib/logstash/inputs/jdbc.rb:249:in
`run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:470:in
`inputworker'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:463:in `start_input'"]}