Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-2011, 02:29 PM
Elite Member
 
Posts: 296
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?
Reply With Quote
  #2 (permalink)  
Old 03-11-2011, 05:03 PM
Junior Member
 
Posts: 7
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.
Reply With Quote
  #3 (permalink)  
Old 04-08-2011, 01:12 AM
Loyal Member
 
Posts: 93
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?
Reply With Quote
  #4 (permalink)  
Old 04-08-2011, 05:59 PM
Zimbra Employee
 
Posts: 580
Default

Make sure you have the logrotate software installed.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.