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, 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