Valid on UNIX
You can configure the Enterprise Management Server to route message queue audit messages to the UNIX syslog. Each time the Enterprise Management Server writes an audit message to the audit log, a corresponding event is sent to the syslog.
To route message queue audit messages to UNIX syslog
JBOSS_HOME\server\default\conf\
The appender specifies the class to use for auditing and how to display the data.
<logger name="EventLog">
<appender-ref ref="ENTM_UNIXSysLog"/>
</logger>
SYSLOGD_OPTIONS="-m 0-r"
/etc/rc.d/init.d/syslog restart
The syslog daemon starts.
The Enterprise Management Server will now route message queue audit message to the UNIX syslog
Example: Modify the jboss-log4j.xml file to send message queue audit messages to UNIX SysLog
The following snippet shows the jboss-log4j.xml file after a LogAppender object was created:
<appender name="ENTM_UNIXSysLog"
class="org.apache.log4j.net.SyslogAppender">
<param name="Facility" value="USER"/>
<param name="FacilityPrinting" value="false"/>
<param name="SyslogHost" value="localhost"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%p - [CA AC ENTM]: %m%n"/>
</layout>
</appender>
<logger name="EventLog">
<appender-ref ref="ENTM_UNIXSysLog"/>
</logger>
In this example, you did the following:
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|