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 10-23-2010, 11:55 AM
Active Member
 
Posts: 28
Default zimbra.log 0 bytes - stopped after logrotate.

It seems that after logrotate, zimbra.log is not filled anymore (syslog stopped logging to zimbra.log).

-rw-r--r-- 1 zimbra zimbra 0 2010-10-22 06:25 zimbra.log
-rw-r--r-- 1 syslog adm 1017563 2010-10-22 06:24 zimbra.log.1.gz
-rw-r--r-- 1 syslog adm 1049984 2010-10-21 06:25 zimbra.log.2.gz
-rw-r--r-- 1 syslog adm 44032 2010-10-20 06:24 zimbra.log.3.gz
-rw-r--r-- 1 zimbra zimbra 2641 2010-10-19 06:24 zimbra.log.4.gz


After restarting syslog, it works again
# /etc/init.d/rsyslog restart

Is this a bug and should I report it?
Reply With Quote
  #2 (permalink)  
Old 10-24-2010, 04:57 AM
Active Member
 
Posts: 28
Default Ubuntu 10.04 uses rsyslogd instead of syslogd

In /opt/zimbra/conf/zmlogrotate, where zimbra.log and zimbra-stats.log are rotated, there is mention of syslogd but Ubuntu is using rsyslogd.

/var/log/zimbra.log {
daily
missingok
notifempty
create 0644 zimbra zimbra
postrotate
killall -HUP syslogd 2> /dev/null || true
su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
endscript
compress
}
/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
}
Reply With Quote
  #3 (permalink)  
Old 10-25-2010, 02:15 AM
Junior Member
 
Posts: 8
Default

Probably it is. Check also thread:

zimbra.log empty after rotate
Reply With Quote
  #4 (permalink)  
Old 10-25-2010, 07:13 AM
imx imx is offline
Special Member
 
Posts: 131
Default

probably not the cleanest fix, but ive not had time to investigate further, but adding this to the following file sorted it for the meant time...

/etc/cron.daily/logrotate

/etc/init.d/rsyslog restart 2>&1
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.