Unable to create syslogappender using custom handler in JBoss EAP 6

Solution Verified - Updated -

Issue

  • Facing below exception while using the syslogAppender with custom handler of JBoss CLI command:

Request:

/subsystem=logging/custom-handler=log4jappender \
    :add(class="org.apache.log4j.net.SyslogAppender", \
         module="org.apache.log4j", \
         formatter="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n", \
         level="INFO", \
         properties=[SyslogHost=localhost,Facility=local7,FacilityPrinting=true])

Result:

{
  "outcome" => "failed",
  "failure-description" => 
      JBAS014749: Operation handler failed: 
                  Failed to load module "org.apache.log4j" for pojo "log4jappender",
  "rolled-back" => true
}

Environment

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

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.