My logs are rotating daily - I used this guide https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size -section:To roll over by time
so my log4j.properties are copy-paste from that guide and daily log rotation is working fine.
What I need more is auto delete log files, that are older than xy days.
I google it and found a solution with log4j.appender.serverAccess.MaxBackupIndex=xy
But, unfortunately, MaxBackupIndex is not working with DailyRollingFileAppender.
Is there any other solution how to achieve this (in my opinion) very basic and common log rotate functionality?