# How to run logstash weekly

**URL:** <https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034>\
**Category:** Logstash\
**Created:** [March 17, 2017, 1:58pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034 "2017-03-17T13:58:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [March 17, 2017, 1:58pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034/1 "2017-03-17T13:58:27Z")

</div>

Hi

I want to run my logstash on weekly basis.

How can i schedule my logstash.Currently i am using below as input its running for each second.  
_" \* \* "_  
How can i make this to run for every one week.

Thanks in Advance...........

---

<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:** [March 17, 2017, 2:01pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034/2 "2017-03-17T14:01:24Z")

</div>

That's really a cron question (for which I'm sure there are tons of Stackoverflow answers). Why do you want to do this? Logstash is typically run continuously.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [March 17, 2017, 2:04pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034/3 "2017-03-17T14:04:47Z")

</div>

I want to run logstash weekly.  
My logs will update by weekly basis.I tried below,but i want to run weekly.  
"30 4 \* \* \*"  
Run every day at 4:30AM

"0 0 \* \* \*"  
Run every day at 12:00AM

"59 23 \* \* \*"  
Run every day at 11:59PM

"0 12 \* \* \*"

---

<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:** [April 14, 2017, 2:04pm UTC](https://discuss.elastic.co/t/how-to-run-logstash-weekly/79034/4 "2017-04-14T14:04:47Z")

</div>

Closed on April 14, 2017, 2:04pm UTC

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