# Hourly log rotation in ES

**URL:** <https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171>\
**Category:** Elasticsearch\
**Created:** [August 12, 2013, 6:16am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171 "2013-08-12T06:16:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/v/2acd7d/32.png) [@Vijay\_Prabhakar](https://discuss.elastic.co/u/Vijay_Prabhakar)\
**Post date:** [August 12, 2013, 6:16am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171/1 "2013-08-12T06:16:16Z")

</div>

Hi Team,

Can you please guide me how to configure hourly log rotation for Elastic  
Search. ..?

Thanks,  
Vijay

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![baniu\_yao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baniu_yao/32/2168_2.png) [@baniu\_yao](https://discuss.elastic.co/u/baniu_yao)\
**Post date:** [August 12, 2013, 8:23am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171/2 "2013-08-12T08:23:47Z")

</div>

For me, I am using a very stupid way to do rotate daily.

My index is named 'XXX-2013-08-11' and I use crontab to run DELETE command  
by curl. It's simple & stupid but very userful. 🙂

在 2013年8月12日星期一UTC+8下午2时16分16秒，Vijay Prabhakar写道：

> Hi Team,
> 
> Can you please guide me how to configure hourly log rotation for Elastic  
> Search. ..?
> 
> Thanks,  
> Vijay

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 12, 2013, 8:42am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171/3 "2013-08-12T08:42:35Z")

</div>

You can use logrotate, eg  
[HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples](http://www.thegeekstuff.com/2010/07/logrotate-examples/).

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 12 August 2013 18:23, 姚仁捷 [baniu.yao@gmail.com](mailto:baniu.yao@gmail.com) wrote:

> For me, I am using a very stupid way to do rotate daily.
> 
> My index is named 'XXX-2013-08-11' and I use crontab to run DELETE command  
> by curl. It's simple & stupid but very userful. 🙂
> 
> 在 2013年8月12日星期一UTC+8下午2时16分16秒，Vijay Prabhakar写道：
> 
> > Hi Team,
> > 
> > Can you please guide me how to configure hourly log rotation for Elastic  
> > Search. ..?
> > 
> > Thanks,  
> > Vijay
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Vijay\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/v/2acd7d/32.png) [@Vijay\_Prabhakar](https://discuss.elastic.co/u/Vijay_Prabhakar)\
**Post date:** [August 12, 2013, 8:52am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171/4 "2013-08-12T08:52:33Z")

</div>

Hi Guys,

Is there any possibilities to configure these in config/logging.yml ..?

On Monday, August 12, 2013 11:46:16 AM UTC+5:30, Vijay Prabhakar wrote:

> Hi Team,
> 
> Can you please guide me how to configure hourly log rotation for Elastic  
> Search. ..?
> 
> Thanks,  
> Vijay

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:21am UTC](https://discuss.elastic.co/t/hourly-log-rotation-in-es/13171/5 "2017-07-06T02:21:38Z")

</div>


