[SOLVED]How to evaluate the logger name for specific log entries

How can I disable the ERROR logging of the following log entries.

2021-05-05 11:35:54.946 [ERROR] [rg.apache.cxf.jaxrs.utils.JAXRSUtils] - Problem with writing the data, class org.openhab.core.io.rest.sitemap.internal.PageDTO, ContentType: application/json
2021-05-05 11:35:54.947 [ERROR] [internal.JSONResponseExceptionMapper] - Unexpected exception occurred while processing REST request.
java.io.IOException: Broken pipe

I’m not able to find out with “list -s” in the karaf console which logger needs to be changed.

As long as you are sure you would like to suppress the content of the error message you could use a filter like described here: Log filtering in OH 3 - #21 by markus7017

Thanks, that works, added this

<RegexFilter onMatch="DENY" onMismatch="ACCEPT" regex=".*(org.openhab\.core\.io\.rest\.sitemap\.internal\.PageDTO|Unexpected exception occurred while processing REST request).*"/>

Anyway, it’s only a temporary workaround. until I found a solution for:

1 Like