Howto filter log messages from puppetserver access.log

asked 2018-12-29 09:48:00 -0600

vicinus gravatar image

I'm trying to remove the healthcheck log messages in the puppetserver access.log created by the load balancer. I added to the file:

/etc/puppetlabs/puppetserver/request-logging.xml

the following filter:

    <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
      <evaluator>
        <expression>
          event.getRequestURI().contains("healthcheck")
        </expression>
      </evaluator>
      <onMismatch>DENY</onMismatch>
    </filter>

With differend expressions like:

return formattedMessage.contains("healthcheck");

But no filter configuration seams to be evaluated at all. I also wasn't able to get any debug messages regarding logback after increasing the log level in:

/etc/puppetlabs/puppetserver/logback.xml

Any help or ideas would be welcome.

edit retag flag offensive close merge delete