# Auto deletion of log files

**URL:** <https://community.wowza.com/t/auto-deletion-of-log-files/40785>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [December 8, 2014, 2:44pm UTC](https://community.wowza.com/t/auto-deletion-of-log-files/40785 "2014-12-08T14:44:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@John\_Anderson](https://community.wowza.com/u/John_Anderson)\
**Post date:** [December 8, 2014, 2:44pm UTC](https://community.wowza.com/t/auto-deletion-of-log-files/40785/1 "2014-12-08T14:44:51Z")

</div>

Is there any way to age out and delete older log files automatically?

JohnA

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 10, 2014, 8:06am UTC](https://community.wowza.com/t/auto-deletion-of-log-files/40785/2 "2014-12-10T08:06:45Z")

</div>

Hello there.

Yes, the log4j file has some options for this. Take a look at this guide:

[How to configure log rolling by time and size](https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size)

Kind regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![John\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@John\_Anderson](https://community.wowza.com/u/John_Anderson)\
**Post date:** [December 10, 2014, 3:20pm UTC](https://community.wowza.com/t/auto-deletion-of-log-files/40785/3 "2014-12-10T15:20:42Z")

</div>

Thanks salvadore, It looks like MaxBackupIndex is the parameter to control this. But comments show that this may not be supported. We are just going to turn off logging and turn it on only when a problem needs to be addressed.

JohnA

---

<div class="post-metadata">

**Author:** ![Claudio\_Beretta](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Claudio\_Beretta](https://community.wowza.com/u/Claudio_Beretta)\
**Post date:** [December 12, 2014, 9:30am UTC](https://community.wowza.com/t/auto-deletion-of-log-files/40785/4 "2014-12-12T09:30:53Z")

</div>

Same situation here: tried to use MaxBackupIndex but found it isn’t supported by DailyRollingFileAppender (it’s specific to RollingFileAppender).

We ended up setting a scheduled task that cleans logs older than X days
