Jboss logging filter-spec not working in EAP 6 ?

Solution Unverified - Updated -

Issue

  • Even with the filter applied for JBREM000200, these messages are still seen in the log file when running EAP 6 in domain mode.
 <size-rotating-file-handler name="HOST_CONTROLLER" autoflush="true">
                    <level name="TRACE"/>
                    <filter-spec value="not(match(&quot;JBREM000200&quot;))"/>
                    <formatter>
                        <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p (%c) [%t] %s%E%n"/>
                    </formatter>
                    <file path="/opt/oodee/jboss-eap/domain/log/host-controller.log"/>
                    <rotate-size value="20m"/>
                    <max-backup-index value="10"/>
                    <append value="true"/>
                </size-rotating-file-handler>
  • We are trying to filter out a few errors that we are getting in the Jboss server.log file. Currently there are too many errors that we are getting, of which certain are of more importance than other. So we want to subside the redundant errors for the time being and when we need them we can remove the filters.
  • We are not getting any error but the filter doesnt work.If we are giving the specific expression/word in the filter handler, that shouldnt come in the logs, but it does. Below is the command we use:
filter-spec value="not(match(&quot;<expression>&quot;))"

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.