Results 1 to 6 of 6

Thread: Increase Logging Time Frame for mailbox.log File

  1. #1
    Join Date
    May 2011
    Posts
    28
    Rep Power
    4

    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.

  2. #2
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    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!

  3. #3
    Join Date
    May 2011
    Posts
    28
    Rep Power
    4

    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?

  4. #4
    Join Date
    May 2011
    Posts
    28
    Rep Power
    4

    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?

  5. #5
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    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!

  6. #6
    Join Date
    May 2011
    Posts
    28
    Rep Power
    4

    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:

    http://www.zimbra.com/forums/adminis...logs-keep.html
    Bug 44554 – log4j configurable amount of days to keep logs.

Similar Threads

  1. .zdb file names go to which accounts?
    By mattnewton in forum Administrators
    Replies: 1
    Last Post: 04-03-2011, 07:36 PM
  2. Download file attachement from Zimbra take a long time
    By halim.chaibi in forum Administrators
    Replies: 0
    Last Post: 02-28-2011, 02:53 AM
  3. ZCO-created meetings display wrong time in HTML views
    By Rich Graves in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 03-06-2008, 08:41 AM
  4. Time mess everything up
    By Peque in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 05-10-2007, 03:31 AM
  5. Replies: 5
    Last Post: 03-01-2007, 03:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •