Tuning logging preferences

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
armitage318
Advanced member
Advanced member
Posts: 98
Joined: Sat Sep 13, 2014 2:01 am

Tuning logging preferences

Post by armitage318 »

Hi, I am using ZCS 8.8.7_GA

This is my log4j.properties.in's content:

Code: Select all

# Appender LOGFILE writes to the file "/opt/zimbra/log/mailbox.log".
# Daily rolling policy with compressing the old log file while rotating!!
# The archived log files location can be changed using FileNamePattern value
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-ww}
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
(I need log to be rotated weekly).

Anyway, I just noticed that in mailbox.log there is so much detail (for this week, mailbox log is 4.8 GB), and I really need to track only source IP address of customer's device).
How can I do this?
Thank you!
Post Reply