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 12-07-2011, 03:04 PM
Active Member
 
Posts: 28
Default Increase Logging Time Frame for mailbox.log File

Hey all,

Is it possible to increase the time frame for which the log file /opt/zimbra/log/mailbox.log stores information (ideally, a full 7 days worth of log information)? I noticed that I could change certain parameters of the mailbox.log file to "DEBUG" instead of "INFO", but it sounds like this just gives me more information for each event that is logged in the file rather than increasing the amount of time over which the mailbox.log file stores information.

Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-07-2011, 03:45 PM
Zimbra Employee
 
Posts: 604
Default

mailbox.log is automatically rolled on a daily basis via /opt/zimbra/conf/log4j.properties configuration. There is a crontab entry for the zimbra user that delete any of these files older then 8days. So you should already have 7 days worth of data just in separate files.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 12-07-2011, 03:48 PM
Active Member
 
Posts: 28
Default

That's great news. Now the next question is: where are these separate files stored? Are they all in the same directory as the mailbox.log file?
Reply With Quote
  #4 (permalink)  
Old 12-21-2011, 12:00 PM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by brian View Post
mailbox.log is automatically rolled on a daily basis via /opt/zimbra/conf/log4j.properties configuration. There is a crontab entry for the zimbra user that delete any of these files older then 8days.
If we want to keep more than 7 days worth of data, can we simply change the mailbox.log crontab entry to only delete files older than say, 14 days rather than 8 days?
Reply With Quote
  #5 (permalink)  
Old 12-21-2011, 01:34 PM
Zimbra Employee
 
Posts: 604
Default

Quote:
Originally Posted by eatickets View Post
If we want to keep more than 7 days worth of data, can we simply change the mailbox.log crontab entry to only delete files older than say, 14 days rather than 8 days?
Yes that should work. There is an RFE to make the number of days configurable but I don't recall the bug number off the top of my head.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 12-21-2011, 01:35 PM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by brian View Post
Yes that should work. There is an RFE to make the number of days configurable but I don't recall the bug number off the top of my head.
Thanks. I found the bug number in a separate forum post, which I'll link here:

[SOLVED] Increase number of logs to keep
Bug 44554 – log4j configurable amount of days to keep logs.
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.