logstash-plugins / logstash-input-jdbc

Logstash Plugin for JDBC Inputs
Apache License 2.0
449 stars 187 forks source link

Give ability poll a source system more than once per minute. #304

Closed robbruce closed 4 years ago

robbruce commented 6 years ago

The rufus scheduler supports a schedule based on seconds, by using the repeat method instead of cron, the method returns an EveryJob or a CronJob based on the schedule used.

schedule => "* * * * *" # CronJob scheduled for every minute
schedule => "10" # EveryJob scheduled for every 10 seconds
robbruce commented 6 years ago

I have signed the CLA at a company level, twice! Please can this be checked.

filip-java commented 4 years ago

The rufus scheduler supports a schedule based on seconds,

Rufus supports seonds, and Rufus support cron "like", which means it looks like cron, but it isn't cron. Rufus add the "seconds" support, as per their doc. Notice the extra "*"

"* * * * * *" //should be every seconds
"*/10 * * * * *" //every ten seconds (works in my pipeline logstash 7.6)
robbruce commented 4 years ago

Closing as although CLA has been signed, it's just being picked up