Skip to content
This repository

Syslog facility for JBoss AS 7

branch: master
README.md

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

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 syslog facility (default "daemon")
Something went wrong with that request. Please try again.