[ 
https://issues.apache.org/jira/browse/LOG4J2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514670#comment-17514670
 ] 

Luning Wang commented on LOG4J2-3453:
-------------------------------------

[~pkarwasz]  Sorry, I copy an error conf, I have updated my conf,  It will 
throw a `Filters contains invalid attributes "onMatch", "onMismatch"` error 
message too.
{code:java}
appender.console.filter.1.type = Filters appender.console.filter.1.a.type = 
ThresholdFilter appender.console.filter.1.a.level = info 
appender.console.filter.1.b.type = RegexFilter 
appender.console.filter.1.b.regex = .*Thrift error occurred during processing 
of message.* appender.console.filter.1.b.onMatch = deny 
appender.console.filter.1.b.onMismatch = neutral {code}
 

> Filters contains invalid attributes "onMatch", "onMismatch"
> -----------------------------------------------------------
>
>                 Key: LOG4J2-3453
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3453
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Luning Wang
>            Priority: Major
>             Fix For: 2.17.2
>
>
> The following is my log4j2.properties
> {code:java}
> appender.console.filter.1.type = Filters
> appender.console.filter.1.a.type = ThresholdFilter
> appender.console.filter.1.a.level = info
> appender.console.filter.1.b.type = RegexFilter
> appender.console.filter.1.b.regex = .*Thrift error occurred during processing 
> of message.*
> appender.console.filter.1.b.onMatch = deny
> appender.console.filter.1.b.onMismatch = neutral
> {code}
> When I set 'log4j2.appender.event.filter.1.type = Filters', it will throw a 
> `Filters contains invalid attributes "onMatch", "onMismatch"` error message.
> What is correctly conf?
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to