Wowza Community

Auto deletion of log files

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


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

Kind regards,


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.


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