/var/log/zimbra.log is empty: why?

Ask questions about your setup or get help installing ZCS server (ZD section below).
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

/var/log/zimbra.log is empty: why?

Post by marcmac »

I'll add this to the Suse 10 build - thanks for finding this!
(Had to go to the man page, huh?)
9211Dude
Posts: 13
Joined: Fri Sep 12, 2014 10:03 pm

/var/log/zimbra.log is empty: why?

Post by 9211Dude »

[quote user="marcmac"](Had to go to the man page, huh?)[/QUOTE]
No, I do not like man pages ;)
Google did the trick!
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

/var/log/zimbra.log is empty: why?

Post by marcmac »

Here's the change I've made to the installer - this will be added to syslog-ng.conf.in:
filter f_local0 { facility(local0); }; # zimbra

destination zmail { file("/var/log/zimbra.log"); }; # zimbra

log { source(src); filter(f_mail); destination(zmail); }; # zimbra

destination local0 { file("/var/log/zimbra.log"); }; # zimbra

log { source(src); filter(f_local0); destination(local0); }; # zimbra
NOTE - this is all additive (don't modify existing mail entry.) Also, the local0 filter is important - otherwise, you end up with duplicate lines for every mail facility item logger.
9211Dude
Posts: 13
Joined: Fri Sep 12, 2014 10:03 pm

/var/log/zimbra.log is empty: why?

Post by 9211Dude »

Will change my lines accordingly.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

/var/log/zimbra.log is empty: why?

Post by marcmac »

Keep the #zimbra at the end of the line - on reinstall/upgrade, I grep -v zimbra on the file, then re-add the stuff - so if you add the zimbra comment, you'll be happy for upgrade time...
ccmacmil
Posts: 12
Joined: Fri Sep 12, 2014 10:04 pm

/var/log/zimbra.log is empty: why?

Post by ccmacmil »

[quote user="marcmac"]Here's the change I've made to the installer - this will be added to syslog-ng.conf.in:
filter f_local0 { facility(local0); }; # zimbra

destination zmail { file("/var/log/zimbra.log"); }; # zimbra

log { source(src); filter(f_mail); destination(zmail); }; # zimbra

destination local0 { file("/var/log/zimbra.log"); }; # zimbra

log { source(src); filter(f_local0); destination(local0); }; # zimbra
NOTE - this is all additive (don't modify existing mail entry.) Also, the local0 filter is important - otherwise, you end up with duplicate lines for every mail facility item logger.[/QUOTE]
Don't forget to modify the logrotate.d scripts too!!!
rameshparvathaneni
Posts: 12
Joined: Fri Sep 12, 2014 11:16 pm

/var/log/zimbra.log is empty: why?

Post by rameshparvathaneni »

Hai
I have similar issue i am able to see logs /var/log/zimbra.log but i am not able to see any logs in /var/log/maillog
any idea about this
Post Reply