Results 1 to 2 of 2

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

  1. #1
    xiebo is offline Intermediate Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    4

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

    I am using Zimbra 7.1 and /var/log directory has 5 files:
    zimbra.log
    zimbra.log.1.gz
    zimbra.log.2.gz
    zimbra.log.3.gz
    zimbra.log.4.gz

    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
    justdave is offline Trained Alumni
    Join Date
    Nov 2008
    Location
    Grand Rapids, MI
    Posts
    123
    Rep Power
    6

    Default

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 02-15-2012, 01:12 AM
  2. Script to remove inbox messagens 3 days ago
    By psyscrew in forum Administrators
    Replies: 0
    Last Post: 11-09-2011, 11: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, 12:12 PM
  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
  •