Results 1 to 4 of 4

Thread: /var/log/zimbra-stats.log rotate 0

  1. #1
    maumar is offline Elite Member
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    348
    Rep Power
    8

    Default /var/log/zimbra-stats.log rotate 0

    i have seen that /var/log/zimbra-stats.log is growing bigger and bigger...
    in zimbra logrotate, it is
    Code:
    /var/log/zimbra-stats.log {
        daily
        missingok
        notifempty
        create 0644 zimbra zimbra
        postrotate
          killall -HUP syslogd 2> /dev/null || true
          su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
        endscript
        rotate 0
    }
    why it's "rotate 0" ? is there a valid reason or it is a typo?

  2. #2
    Mercer's Avatar
    Mercer is offline Junior Member
    Join Date
    Jul 2007
    Location
    Harrisburg, PA
    Posts
    7
    Rep Power
    8

    Default

    'rotate 0' does not cause the script to not be rotated; instead it deletes it immediately. With the 'daily' directive at the top it means it is deleted daily. This log does get big quickly so it is deleted instead of saved.

    You can verify this by doing a 'less /var/log/zimbra-stats.log' and checking if the first entry is today's (or yesterdays if early in the morning) date.

  3. #3
    MACscr is offline Special Member
    Join Date
    Jun 2010
    Posts
    126
    Rep Power
    5

    Default

    The dates showing in mine when i run that less query are from 9 months ago. So I am assuming its not rotating correctly? What should i check next?

  4. #4
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,265
    Rep Power
    10

    Default

    Make sure you have the logrotate software installed.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. zimbra.log empty after rotate
    By shrek in forum Installation
    Replies: 5
    Last Post: 10-28-2010, 01:56 AM
  2. Mailbox/Zimbrastats Rotate
    By etoczek in forum Administrators
    Replies: 1
    Last Post: 08-14-2007, 09:43 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
  •