Elasticsearch throwing invalid attributes in log

Hi,

Elasticsearch log is been written as below:
2023-01-16 19:02:31,790 main ERROR Filters contains invalid attributes "onMatch", "onMismatch"

In our log4j2.properties, we have included onMatch and onMismatch, what is the solution for this log error entry.

Regards,
Ramesh P

Could you provide the contents of the log4j2.properties file with sensitive data (if any) redacted?