Results 1 to 2 of 2

Thread: zimbra.log, increase store time

  1. #1
    Join Date
    Mar 2011
    Posts
    13
    Rep Power
    4

    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.

  2. #2
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    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

Similar Threads

  1. HELIX 7.1.1 ported to FreeBSD
    By solko in forum Installation
    Replies: 22
    Last Post: 05-21-2013, 05:37 AM
  2. Received mail time in zcs Web clinet
    By sateesh in forum Administrators
    Replies: 0
    Last Post: 08-15-2011, 09:10 PM
  3. Backup - store folder increase rapidly
    By Nikos Lyberakis in forum Administrators
    Replies: 7
    Last Post: 01-10-2011, 12:26 AM
  4. 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
  5. Time mess everything up
    By Peque in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 05-10-2007, 03:31 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
  •