How to filter/remove specific logging messages in JBoss EAP 6/7 ?

Solution Verified - Updated -

Issue

  • How to remove specific logging message from log file
  • How can we filter out an undesirable message from our logs? We have a warning message that occurs very frequently and is cluttering up the file.
  • We need to prevent a certain log message, from showing up in the logs
  • How can we remove certain logs statements from our logs?
  • In EAP 5 we defined appenders with custom filters, to suppress specific log entries. What is the equivalent in EAP 6/7?
  • We would like to mute certain exception messages in our logs, how can we do this?
  • In domain mode, unable to add a log filter with a double quote. When deployed in Linux server, the domain could not start while using:
/profile=full-ha/subsystem=logging/periodic-size-rotating-file-handler=FILE/:write-attribute(name=filter-spec,value= "not(match("IJ000604"))")
  • Replacing Logback with JBoss logging leads to difference between the log formats
  • How to filter out specific logging message from server.log in EAP 7
  • How to use filter-spec attribute ?
  • How to filter out specific logging message from server.log in EAP 7 using CLI
  • How to configure logging filter in EAP6
  • I'd like to configure logging filter in EAP 6.2.0. I used the following filter in older EAP6, but it does not work in EAP 6.2.0 any longer.
  <logger category="org.jboss.security">
    <level name="WARN"/>
    <filter>
      <not>
        <match pattern="PBOX000206.*"/>
      </not>
    </filter>
  </logger>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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