How to add new filter-sepc to existing size-rotating-file-handler in eap 6?

Solution Verified - Updated -

Issue

  • We want to achieve like below :
<filter-spec value="not((match(&quot;JBAS015960.*&quot;),match(&quot;JBAS011006.*&quot;)))"/>
  • We have only 1 filter-spec and want to append more value to existing filter-spec.
  • Current:
 <console-handler name="CONSOLE">
                    <level name="INFO"/>
                    <filter-spec value="not(match(&quot;JBREM000200&quot;))"/>
                    <formatter>
                        <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                    </formatter>
                </console-handler>
  • Expected:
 <console-handler name="CONSOLE">
                    <level name="INFO"/>
                    <filter-spec value="not(match(&quot;JBREM000200&quot;),match(&quot;HQ214016&quot;))"/>
                    <formatter>
                        <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                    </formatter>
                </console-handler>

Environment

  • RedHat 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.