[
https://issues.apache.org/jira/browse/LOG4J2-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luning Wang updated LOG4J2-3453:
--------------------------------
Description:
The following is my log4j2.properties
{code:java}
log4j2.appender.event.filter.1.type = Filters
log4j2.appender.event.filter.1.a.type = RegexFilter
log4j2.appender.event.filter.1.a.regex =
.*(C_Radon_(Level|Updated|Running)|C_Solar_(PowerTotal|PowerEast|PowerWest|TotalYield|DailyYield)|OFFLINE.*10\.13\.0\.70).*
log4j2.appender.event.filter.1.a.onMatch = DENY
log4j2.appender.event.filter.1.a.onMismatch = NEUTRAL
log4j2.appender.event.filter.1.b.type = RegexFilter
log4j2.appender.event.filter.1.b.regex = .*(C_Air_).*
log4j2.appender.event.filter.1.b.onMatch = DENY
log4j2.appender.event.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?
was:
{code:java}
log4j2.appender.event.filter.1.type = Filters
log4j2.appender.event.filter.1.a.type = RegexFilter
log4j2.appender.event.filter.1.a.regex =
.*(C_Radon_(Level|Updated|Running)|C_Solar_(PowerTotal|PowerEast|PowerWest|TotalYield|DailyYield)|OFFLINE.*10\.13\.0\.70).*
log4j2.appender.event.filter.1.a.onMatch = DENY
log4j2.appender.event.filter.1.a.onMismatch = NEUTRAL
log4j2.appender.event.filter.1.b.type = RegexFilter
log4j2.appender.event.filter.1.b.regex = .*(C_Air_).*
log4j2.appender.event.filter.1.b.onMatch = DENY
log4j2.appender.event.filter.1.b.onMismatch = NEUTRAL {code}
when I set `log4j2.appender.event.filter.1.type = Filters `
It will throw a error message:`Filters contains invalid attributes "onMatch",
"onMismatch" `.
What is correctly conf?
> 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}
> log4j2.appender.event.filter.1.type = Filters
> log4j2.appender.event.filter.1.a.type = RegexFilter
> log4j2.appender.event.filter.1.a.regex =
> .*(C_Radon_(Level|Updated|Running)|C_Solar_(PowerTotal|PowerEast|PowerWest|TotalYield|DailyYield)|OFFLINE.*10\.13\.0\.70).*
> log4j2.appender.event.filter.1.a.onMatch = DENY
> log4j2.appender.event.filter.1.a.onMismatch = NEUTRAL
> log4j2.appender.event.filter.1.b.type = RegexFilter
> log4j2.appender.event.filter.1.b.regex = .*(C_Air_).*
> log4j2.appender.event.filter.1.b.onMatch = DENY
> log4j2.appender.event.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)