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 10-31-2011, 06:49 AM
Member
 
Posts: 13
Default zimbra.log, increase store time

how to store zimbra.log, for example 30 days, without external scripts?
now zimbra.log stored only 4 days.
Reply With Quote
  #2 (permalink)  
Old 10-31-2011, 09:57 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by Random View Post
how to store zimbra.log, for example 30 days, without external scripts?
now zimbra.log stored only 4 days.
Log file rotation is controlled by the zimbra script in /etc/logrotate.d and log file purging is controlled by the two entries below in the zimbra user's crontab:

Code:
# Log pruning
#
30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
You can control log file retention via one or more settings in /etc/logrotate.d/zimbra as well as by modifying zimbra's crontab.

Just remember that when you upgrade Zimbra your changes will not be saved!

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
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.