# Logstash jdbc input schedule

**URL:** https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311
**Category:** Logstash
**Created:** [July 31, 2020, 6:34am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311 "2020-07-31T06:34:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Luismg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luismg/32/49995_2.png) [@Luismg](https://discuss.elastic.co/u/Luismg)
#### Post date: [July 31, 2020, 6:34am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311/1 "2020-07-31T06:34:24Z")

</div>

Hi,

I'm currently trying to import data from a DB into ES using the jdbc input plugin.  
I want to run the pipeline during the night between 9pm and 4am.

How can I define my schedule? I've tried '\*/1 21-04 \* \* \*' but that does not seem to work.

Thanks

---

<div class="post-metadata">

### Author: ![Jenni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenni/32/29684_2.png) [@Jenni](https://discuss.elastic.co/u/Jenni)
#### Post date: [July 31, 2020, 7:21am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311/2 "2020-07-31T07:21:19Z")

</div>

Have you tried `21-23,0-4` yet?  
(I don't know if Rufus Scheduler supports this syntax, but it might.)

---

<div class="post-metadata">

### Author: ![Luismg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luismg/32/49995_2.png) [@Luismg](https://discuss.elastic.co/u/Luismg)
#### Post date: [July 31, 2020, 9:57am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311/3 "2020-07-31T09:57:55Z")

</div>

What I see with the schedule '\*/1 21-04 \* \* \*' is that the pipeline only runs till 0h.  
It might be because of the leading '0' when defining 4am.

I will give your suggestion a go. Thanks!

---

<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: [August 28, 2020, 9:58am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-schedule/243311/4 "2020-08-28T09:58:03Z")

</div>

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