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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content