Before scheduling audit log downloads, manually download the audit log. Log entries that are made before the first scheduled download are not be written to the downloaded file.
You can speed up log cleanup by regularly downloading the audit log file. This feature works especially well with enable audit log cleanup enabled, Server settings.
file. You can download the log files daily and then clean up the logs. See, log4j.appender.audit-log-to-file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.audit-log-to-file.File=../var/log/audit.log
log4j.appender.audit-log-to-file.MaxFileSize=100MB
log4j.appender.audit-log-to-file.DatePattern='.'yyyy-MM-dd
log4j.appender.audit-log-to-file.layout=org.apache.log4j.PatternLayout
log4j.appender.audit-log-to-file.layout.ConversionPattern=%m%n
log4j.logger.AuditLog=DEBUG, audit-log-to-file
log4j.additivity.AuditLog=false