# Logstash pipeline schedule

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-schedule/269139>\
**Category:** Logstash\
**Created:** [April 3, 2021, 5:30am UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139 "2021-04-03T05:30:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)\
**Post date:** [April 3, 2021, 5:30am UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139/1 "2021-04-03T05:30:47Z")

</div>

Hi there  
I`ve faced with a problem...  
I have a running Logstash with multiple pipelines. I just want to run one of these pipelines from 00:00 am until 08:00 am everyday  
According to Logstash documentation, pipeline configuration has just cron schedule... so is there any way to run a pipeline at a specified time interval?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 3, 2021, 3:05pm UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139/2 "2021-04-03T15:05:35Z")

</div>

> [@Farid\_N](#):
>
> is there any way to run a pipeline at a specified time interval?

Not that I know of.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 3, 2021, 5:33pm UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139/3 "2021-04-03T17:33:40Z")

</div>

It is not possible in a native way, what you can do is run a different logstash instance with only this pipeline and configure `cron` entries in your system to stop and start this service.

You could also use a combination of the `mutate` filter and `translate` filter to add a logic that would drop the events outside your time frame, but this also would rely on a external cron to update some files.

---

<div class="post-metadata">

**Author:** ![Farid\_N](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farid_n/32/74144_2.png) [@Farid\_N](https://discuss.elastic.co/u/Farid_N)\
**Post date:** [April 4, 2021, 5:18am UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139/4 "2021-04-04T05:18:45Z")

</div>

Thanks for your response.  
This is what I do now already... Thought it might has a native solution  
Thank you so much

---

<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:** [May 2, 2021, 5:18am UTC](https://discuss.elastic.co/t/logstash-pipeline-schedule/269139/5 "2021-05-02T05:18:59Z")

</div>

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