Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.81 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.81 KB

Actions Status Licence Issues Stars

jboss-syslog

Syslog facility for JBoss AS 7.1

Please note that JBoss EAP 6.1 contains a syslog module, which makes this addition obsolete.

Compile the jar file with maven: mvn package. If you need to support Java 6, change the compiler settings in the pom.

Unzip the archive created in the target/zip folder at $JBOSS_HOME/modules.

Modify the JBoss configuration in standalone/configuration/standalone.xml like this:

<subsystem xmlns="urn:jboss:domain:logging:1.1">
    ...
    <custom-handler name="SYSLOG" class="x1.jboss.syslog.SyslogHandler" module="x1.jboss-syslog">
        <level name="INFO"/>
        <properties>
            <property name="loghost" value="localhost"/>
            <property name="application" value="jboss-as7"/>
            <property name="facility" value="daemon"/>
        </properties>
    </custom-handler>
    ...
    <root-logger>
        <level name="INFO"/>
        <handlers>
            <handler name="CONSOLE"/>
            <handler name="FILE"/>
            <handler name="SYSLOG"/>
        </handlers>
    </root-logger>
</subsystem>

Valid properties are:

  • loghost: hostname or IP address of the log server (default: localhost)
  • port: port of the log server (default: 514)
  • protocol: udp (default) or tcp
  • application: name of the application (default: java)
  • facility: name of the syslog facility (default: daemon)