How can I configure options on the SyslogHandler that aren't available via the CLI?

Solution Verified - Updated -

Issue

  • How can I configured the maximum length of a syslog message that the JBoss SyslogHandler will send?
  • I've configured the syslog handler as follows which works fine, but we have some SLF4J MDC parameters that we want to see as well. Is there an alternative to RFC5424 so that we can configure the log message itself?

    <syslog-handler name="SYSLOG">
        <level name="WARN"/>
        <server-address value="${syslog.host:localhost}"/>
        <hostname value="${env.HOSTNAME:appserver}"/>
        <app-name value="${syslog.appname:jboss}"/>
        <formatter>
            <syslog-format syslog-type="RFC5424"/>
        </formatter>
        <facility value="${syslog.facility:user-level}"/>
    </syslog-handler>
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.