Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-2009, 09:58 AM
Special Member
 
Posts: 133
Default Audit log rotation

Our audit log files are huge!

# ll /opt/zimbra/log/audit.log
-rw-r----- 1 zimbra zimbra 76248662 Feb 21 19:53 /opt/zimbra/log/audit.log

I would like to rotate this to something based on file size rather than daily. I have found the following in /opt/zimbra/conf/log4j.properties.in

# Appender AUDIT writes to the file "audit.log".
log4j.appender.AUDIT=org.apache.log4j.DailyRolling FileAppender
log4j.appender.AUDIT.File=/opt/zimbra/log/audit.log
log4j.appender.AUDIT.DatePattern='.'yyyy-MM-dd
log4j.appender.AUDIT.Append=true
log4j.appender.AUDIT.layout=com.zimbra.common.util .ZimbraPatternLayout
log4j.appender.AUDIT.layout.ConversionPattern=%d %-5p [%t] [%z] %c{1} - %m%n

Trouble is - I have no idea what to change the DailyRollingFileAppender to.

log4j.appender.AUDIT=org.apache.log4j.RollingFileA ppender
log4j.appender.AUDIT.MaxFileSize=1000KB

Some scratching around points me to the above, but I need to know if this would work before I implement.
__________________
:wq
bonobo

http://bonoboslr.wordpress.com/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.