zmlogger, syslog, rsyslog and stats Hi,
Perhaps this was discussed before and I couldn't find the thread in the forum. After migrating/upgraded from 32bit OE 5.0.16 (yes if it's not broke..) -> 64bit 6.0.9 on a different server, I notice the logging stats were not working. Zimbra was collecting them in /var/log/zimbra-stats.log but for some strange reason the stats were not updating in the Admin Console.
After poking around, I notice logger database was not updating and zmlogger (via zmlogswatch.out) was producing a lot of uninitialized value at line 564
Use of uninitialized value in string eq at /opt/zimbra/libexec/zmlogger line 564, <> line 1551.
Use of uninitialized value in string eq at /opt/zimbra/libexec/zmlogger line 564, <> line 1551.
Looking at the code, zmlogger is trying to match fields from zimbra-stats.log. What I found interesting was on my setup rsyslogd logged a slightly different way that what zmlogger is expecting. Hence the errors.
So instead of changing rsyslogd's format, I decided to see if zmlogger is expecting a syslog standard format.
I setup syslog on the server (fairly quick process). Executed the zmsetupsyslog script and restarted zimbra. As I expected, the errors went away, updates started happening in zmlogger's database (logger/db/data) and Admin console shows the correct status.
I hope this helps others who are in a similar situation as I was.
-Charles
zimbra 6.0.9, CentOS 5.5 x6.4 |