How to send XenMobile Device Manager logs to syslog


#1

This only applies to Device Manager version 9 or below

Device manager is the only part of the solution that does not have syslogging capability built into the application. Although it might be possible to install a log collector on the DM (Device Manager) servers this might not always be a viable solution.

While looking into this I discovered that apache tomcat has a built in syslogging functionality.

In order to enable syslogging:

Nagivate to XenMobile Device Manager\tomcat\webapps\zdm\WEB-INF\classes and edit log4j.properties

Add the following lines

log4j.appender.SYSLOG = org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.syslogHost = Server IP or DNS name
log4j.appender.SYSLOG.layout = org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern = %d [%t] %5p %c %x - %m%n
log4j.appender.SYSLOG.Facility = LOCAL0

Now go down to each individual logger and append syslog to the end

log4j.logger.com.zenprise=error,ZDMLOGFILE,syslog

Do this for all loggers that you want to be sent to syslog