cluster.log file not getting populated and size is zero bytes in JBoss EAP 5.1

Solution Verified - Updated -

Issue

  • The default jboss-log4j.xml configurations for the cluster configurations in EAP 5.1., clustering log is enabled by default. However, the clustering log messages appear in server.log instead of  cluster.log, and the file size of cluster.log is always zero.

       <!-- Clustering logging -->
       <!-- Will redirect the org.jgroups and
          org.jboss.ha categories to a cluster.log file.
       -->
       <appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
         <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
         <param name="File" value="${jboss.server.log.dir}/cluster.log"/>
         <param name="Append" value="false"/>
         <param name="MaxFileSize" value="500KB"/>
         <param name="MaxBackupIndex" value="1"/>
    
         <layout class="org.apache.log4j.PatternLayout">
           <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
         </layout>
       </appender>
       <category name="org.jgroups">
         <priority value="WARN" />
         <appender-ref ref="CLUSTER"/>
       </category>
       <category name="org.jboss.ha">
         <priority value="INFO" />
         <appender-ref ref="CLUSTER"/>
       </category>
    

Environment

  • JBoss Enterprise Application Platform (EAP) 5.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