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

Filter Configuration Error when using KeyValuePair

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha1, 2.0-alpha2, 2.0-beta2
    • 2.0-beta2
    • Documentation, Filters
    • None
    • Win7

    Description

      When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :

      ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair

      <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
      <KeyValuePair key="User1" value="DEBUG"/>
      </DynamicThresholdFilter>

      The problem seems to be present at other filters as well, where KeyValuePair is used.

      Attachments

        Activity

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

          People

            rgoers Ralph Goers
            bekisz Szabolcs Beki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment