mgaceanu opened a new issue, #3104:
URL: https://github.com/apache/logging-log4j2/issues/3104
## Description
The composite filter seem to not work with multiple MarkerFilters.
I learned in the meantime about the existence of the NoMarkerFilter which
fits my use case, but I guess chaining multiple MarkerFilters is still a valid
scenario.
Here is my configuration:
```
AppenderRef:
- ref: Console
Filters:
- MarkerFilter:
marker: COMMAND
onMatch: DENY
onMismatch: NEUTRAL
- MarkerFilter:
marker: METRICS
onMatch: DENY
onMismatch: NEUTRAL
```
You can see in the logs bellow, having two MarkerFIlters, COMMAND and
METRICS, only the first one is taken into account.
## Configuration
**Version:** 2.24.1
**Operating system:** Ubuntu 22.04
**JDK:** 8
## Logs
```
2024-10-17T12:26:13,119 [main] INFO MarkerExample - This is a METRICS log
entry
2024-10-17T12:26:13,122 [main] INFO MarkerExample - This is a general log
entry without a marker
```
## Reproduction
I'm attaching a test below
[demo.zip](https://github.com/user-attachments/files/17410755/demo.zip)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]