Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5043

Filtering of logging messages works incorrectly

XMLWordPrintable

    • Workaround Exists
    • Hide

      Use regex "or" instead of the "all" filtering element:
      <filter>
      <not><match pattern="(JBAS014101|JBAS011806)"/></not>
      </filter>

      Show
      Use regex "or" instead of the "all" filtering element: <filter> <not><match pattern="(JBAS014101|JBAS011806)"/></not> </filter>

      In standalone.xml I'm trying to filter out wrong error messages:
      <subsystem xmlns="urn:jboss:domain:logging:1.1">
      <console-handler name="CONSOLE">
      <filter>
      <all>
      <not><match pattern="JBAS014101: Failed to find SFSB instance with session ID"/></not>
      <not><match pattern="JBAS011806: Channel end notification received, closing channel Channel ID"/></not>
      </all>
      </filter>
      </console-handler>
      But this doesn't work, and under debugger I see that the configuration got parsed as
      "filter" => {"all" => {"not" =>

      {"match" => "JBAS011806: Channel end notification received, closing channel Channel ID"}

      }},
      Looks like due to the use of maps for storing the parsing results the first "not" filter got overwritten by the second "not" filter.

            jperkins-rhn James Perkins
            olegnitz Oleg Nitz (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: