Thanks. Finally figured it out, we actually needed to syslog to a remote host, so (for anyone else looking to do this) I edited the two files:
- /opt/zimbra/conf/log4j.properties
/opt/zimbra/conf/log4j.properties.in
First I created a custom appender, then I included our customer appender in the rootLogger:
Code: Select all
log4j.rootLogger=INFO,LOGFILE,CUSTOM
log4j.appender.CUSTOM=org.apache.log4j.net.SyslogAppender
log4j.appender.CUSTOM.SyslogHost=10.x.x.x
log4j.appender.CUSTOM.Facility=MAIL
log4j.appender.CUSTOM.layout=com.zimbra.common.util.ZimbraPatternLayout
log4j.appender.CUSTOM.layout.ConversionPattern=mailboxd: %-5p [%t] [%z] %c{1} - %m