logrotate mailbox.log

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
zgokan
Advanced member
Advanced member
Posts: 108
Joined: Sun Apr 17, 2016 8:58 am

logrotate mailbox.log

Postby zgokan » Thu Mar 12, 2020 3:35 pm

Hello

Mailbox log size is 70 gb. Can I truncate the logs? Or can I use logrotate ?
What suggestion do you have?


neutronscott
Posts: 28
Joined: Fri Jun 09, 2017 2:05 pm

Re: logrotate mailbox.log

Postby neutronscott » Fri Mar 13, 2020 2:40 am

i've not had problems with mailbox.log rotating since the application does it itself.

What version Zimbra? Do you have this in /opt/zimbra/conf/log4j.properties.in

Code: Select all

log4j.appender.LOGFILE.RollingPolicy.FileNamePattern=/opt/zimbra/log/mailbox.log.%d{yyyy-MM-dd}
zgokan
Advanced member
Advanced member
Posts: 108
Joined: Sun Apr 17, 2016 8:58 am

Re: logrotate mailbox.log

Postby zgokan » Fri Mar 13, 2020 7:57 am

Hello

version:
Release 8.8.15_GA_3869.RHEL7_64_20190917004220 RHEL7_64 FOSS edition, Patch 8.8.15_P7.


conf:

Code: Select all

log4j.appender.LOGFILE=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.LOGFILE.RollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.LOGFILE.RollingPolicy.FileNamePattern=/opt/zimbra/log/mailbox.log.%d{yyyy-MM-dd}
log4j.appender.LOGFILE.File=/opt/zimbra/log/mailbox.log
log4j.appender.LOGFILE.layout=com.zimbra.common.util.ZimbraPatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d %-5p [%t] [%z] %c{1} - %m%n
neutronscott
Posts: 28
Joined: Fri Jun 09, 2017 2:05 pm

Re: logrotate mailbox.log

Postby neutronscott » Fri Mar 13, 2020 11:19 am

Is it rotating daily but 70gb in a day?

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 14 guests