Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2202

MarkerFilter onMismatch invalid attribute in .properties

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.0
    • 2.11.0
    • Filters
    • None

    Description

      Trying to use the following configuration results in an error indicating that onMismatch is not a property of markerfilter while the docs state that this attribute exists.

      https://logging.apache.org/log4j/2.x/manual/filters.html#MarkerFilter

      filter.muteHeartbeatEvent.type = MarkerFilter
      filter.muteHeartbeatEvent.marker ="Heartbeat_Event"
      filter.muteHeartbeatEvent.onMatch = DENY
      filter.muteHeartbeatEvent.onMismatch = NEUTRAL

       

       2018-01-20 11:11:51,881 main ERROR MarkerFilter contains an invalid element or attribute "onMismatch"

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Kilian Kilian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment