Results 1 to 2 of 2

Thread: zimbra.log, increase store time

  1. #1
    Random is offline Member
    Join Date
    Mar 2011
    Posts
    13
    Rep Power
    3

    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
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,281
    Rep Power
    9

    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, Managing Member


    "Uptime. All the time."®

    Ten Years In Business! 2003 - 2013!

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

    proactive maintenance and monitoring | technology consulting
    Zimbra groupware | cloud hosting | business continuity

    Maine's only managed services and cloud hosting provider with a
    SOC 2 Type II audit covering Security, Availability and Confidentiality

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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