# Logrotate how to do it?

**URL:** <https://community.wowza.com/t/logrotate-how-to-do-it/33880>\
**Category:** Wowza Streaming Engine\
**Created:** [December 17, 2009, 2:02pm UTC](https://community.wowza.com/t/logrotate-how-to-do-it/33880 "2009-12-17T14:02:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aze\_aze](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@aze\_aze](https://community.wowza.com/u/aze_aze)\
**Post date:** [December 17, 2009, 2:02pm UTC](https://community.wowza.com/t/logrotate-how-to-do-it/33880/1 "2009-12-17T14:02:51Z")

</div>

I searched the forum, and I can’t believe that the word logrotate has never been used on the forum!? :eek:

So what’s the correct way of rotating the log files?

Regards,

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 18, 2009, 12:17pm UTC](https://community.wowza.com/t/logrotate-how-to-do-it/33880/2 "2009-12-18T12:17:30Z")

</div>

“log rotate” or “rotation” ?

The log4j appenders are setup for daily rollover, but you can modify in /conf/log4j.properties. This is how to do hourly:

[http://community.wowza.com/t/-/33674#2](http://community.wowza.com/t/-/33674#2)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 18, 2009, 1:16pm UTC](https://community.wowza.com/t/logrotate-how-to-do-it/33880/3 "2009-12-18T13:16:33Z")

</div>

I don’t know, but I found this posting about using logrotate and log4j together.

[http://nicerhttpd.blogspot.com/2008/11/logrotate-and-log4j.html](http://nicerhttpd.blogspot.com/2008/11/logrotate-and-log4j.html)

Richard

---

<div class="post-metadata">

**Author:** ![aze\_aze](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@aze\_aze](https://community.wowza.com/u/aze_aze)\
**Post date:** [December 18, 2009, 5:09am UTC](https://community.wowza.com/t/logrotate-how-to-do-it/33880/4 "2009-12-18T05:09:14Z")

</div>

logrotate is a gnu/linux app that archives log files (for instance everyday day) and removes them after some period of time, so that the harddrive doesn’t suddenly get locked due to no free space being left.

I noticed that log4j kinda does that, but does it allow deletion of the old log files after some time?
