How to run the schedule every five minutes in Logstash 5.0?


(Kulasangar Gowrisangar) #1

I'm having a jdbc connection within my input in logstash where as I'm trying to execute the query according to the schedule property. I went through jdbc and rufus-scheduler, but still pretty unclear of what those five stars(*) represent individually.

As per my knowledge, the stars from left to right (* * * * *):

  1. minute
  2. hour
  3. from (month)
  4. to (month)
  5. day

So if it's a scenario as such (* * * * *), it represents to run the scheduler every minute. Hence if I'm to run it every five minutes, how the scheduler should look like? Something like (5 * * * *)?

Have I assumed it right? Or correct me if I'm wrong please.


Elasticsearch Input Plugin on Timer
(Magnus B├Ąck) #2

See examples at http://www.thegeekstuff.com/2011/07/cron-every-5-minutes/.


Why is it merging my indexes?
(Kulasangar Gowrisangar) #3

@magnusbaeck thank you :slight_smile:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.