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

**URL:** https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222
**Category:** Logstash
**Created:** [November 16, 2016, 9:04am UTC](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222 "2016-11-16T09:04:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)
#### Post date: [November 16, 2016, 9:04am UTC](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222/1 "2016-11-16T09:04:26Z")

</div>

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](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html) and [rufus-scheduler](https://github.com/jmettraux/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.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [November 16, 2016, 9:14am UTC](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222/2 "2016-11-16T09:14:46Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)
#### Post date: [November 16, 2016, 9:47am UTC](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222/3 "2016-11-16T09:47:26Z")

</div>

@magnusbaeck thank you 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 14, 2016, 9:47am UTC](https://discuss.elastic.co/t/how-to-run-the-schedule-every-five-minutes-in-logstash-5-0/66222/4 "2016-12-14T09:47:56Z")

</div>

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