ppkarwasz commented on issue #2791: URL: https://github.com/apache/logging-log4j2/issues/2791#issuecomment-2265017589
@linghengqian, The problem is due to a typo in your configuration file: ```properties logger.CBORuleLogger.filter.marker.type = MarkerFilter logger.CBORuleLogger.filter.marker.marker = FULL_PLAN logger.CBORuleLogger.filter.marker.onMatch = DENY logger.CBORuleLogger.filter.marker.onMisMatch = NEUTRAL ``` You have `onMisMatch` instead of `onMismatch`. The misleading error message is due to the following code in `PropertiesConfigurationBuilder`: https://github.com/apache/logging-log4j2/blob/eaae9e381181066856565706551f4746e8ab5102/log4j-core/src/main/java/org/apache/logging/log4j/core/config/properties/PropertiesConfigurationBuilder.java#L234-L236 https://github.com/apache/logging-log4j2/blob/eaae9e381181066856565706551f4746e8ab5102/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/impl/DefaultConfigurationBuilder.java#L457-L460 https://github.com/apache/logging-log4j2/blob/eaae9e381181066856565706551f4746e8ab5102/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/impl/DefaultFilterComponentBuilder.java#L29-L37 Since you don't have an `onMismatch` attribute, the code creates a synthetic `onMismatch` attribute with an invalid `null` value. **Remark**: Fixing this also fixes [LOG4J2-2931](https://issues.apache.org/jira/browse/LOG4J2-2931), so I am redirecting that issue here. **PS**: I noticed that Apache Hive uses a pre-2.6 properties configuration format (the `loggers` is not required since version 2.6). Would you consider switching to a more easily readable configuration format? Version 3.x will introduce breaking changes to the properties format, but not the hierarchical ones. -- 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: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org