Increase Logging Time Frame for mailbox.log File

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
eatickets
Posts: 28
Joined: Sat Sep 13, 2014 2:00 am

Increase Logging Time Frame for mailbox.log File

Postby eatickets » Wed Dec 07, 2011 5:04 pm

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.


1542brian
Zimbra Alumni
Zimbra Alumni
Posts: 619
Joined: Fri Sep 12, 2014 10:13 pm

Increase Logging Time Frame for mailbox.log File

Postby 1542brian » Wed Dec 07, 2011 5:45 pm

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.
eatickets
Posts: 28
Joined: Sat Sep 13, 2014 2:00 am

Increase Logging Time Frame for mailbox.log File

Postby eatickets » Wed Dec 07, 2011 5:48 pm

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?
eatickets
Posts: 28
Joined: Sat Sep 13, 2014 2:00 am

Increase Logging Time Frame for mailbox.log File

Postby eatickets » Wed Dec 21, 2011 2:00 pm

[quote user="1542brian"]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. [/QUOTE]
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?
1542brian
Zimbra Alumni
Zimbra Alumni
Posts: 619
Joined: Fri Sep 12, 2014 10:13 pm

Increase Logging Time Frame for mailbox.log File

Postby 1542brian » Wed Dec 21, 2011 3:34 pm

[quote user="eatickets"]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?[/QUOTE]
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.
eatickets
Posts: 28
Joined: Sat Sep 13, 2014 2:00 am

Increase Logging Time Frame for mailbox.log File

Postby eatickets » Wed Dec 21, 2011 3:35 pm

[quote user="1542brian"]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.[/QUOTE]

Thanks. I found the bug number in a separate forum post, which I'll link here:
http://www.zimbra.com/forums/administrators/35928-solved-increase-number-logs-keep.html

Bug 44554 – log4j configurable amount of days to keep logs.

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 26 guests