Results 1 to 2 of 2

Thread: How to rotate /var/log/zimbra.log for 365 days?

  1. #1
    Join Date
    Jul 2011
    Rep Power

    Default How to rotate /var/log/zimbra.log for 365 days?

    I am using Zimbra 7.1 and /var/log directory has 5 files:

    It seems that it could only save the last 4 days /var/log/zimbra.log file.

    I want to save the last 365 days /var/log/zimbra.log file. How to do it?

  2. #2
    Join Date
    Nov 2008
    Grand Rapids, MI
    Rep Power


    you can edit the rotation script in /etc/logrotate.d/zimbra

    Check 'man logrotate' for the script syntax. you probably want to add a 'rotate 365' or somesuch, but I'd doublecheck the man page to make sure. Note that'll also use a lot of disk space. Make sure you have enough.

    That file will get overwritten by the Zimbra installer any time you upgrade, so you'll need to remember to edit it again after an upgrade.

Similar Threads

  1. Replies: 13
    Last Post: 02-15-2012, 12:12 AM
  2. Script to remove inbox messagens 3 days ago
    By psyscrew in forum Administrators
    Replies: 0
    Last Post: 11-09-2011, 10:45 AM
  3. Set Email retention period less than 30 days.
    By riyazna in forum Administrators
    Replies: 3
    Last Post: 09-21-2011, 03:18 AM
  4. High CPU Load every couple of days
    By pornsakb in forum Administrators
    Replies: 13
    Last Post: 11-30-2007, 11:12 AM
  5. Certificate Days???
    By jgao in forum Administrators
    Replies: 2
    Last Post: 06-18-2006, 07:11 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