unit icon indicating copy to clipboard operation
unit copied to clipboard

Feature: Access Logs filtering

Open joachimBurket opened this issue 4 years ago • 2 comments

Hi there,

It would be great to be able to filter access logs by its content. I'm running my apps in a Kubernetes cluster, and have some healthchecks configured on '/readyz' and '/livez'. These checks are generating a lot of access logs, which make hard to see the important ones.

joachimBurket avatar Nov 11 '21 07:11 joachimBurket

Any ideas on how such configuration may look like? Or maybe we just need to allow configuring access log in the router objects somehow?

VBart avatar Nov 24 '21 14:11 VBart

in nginx we do it like this

# ignore health checks from logs
    map $request_uri $loggable {
        /health 0;

        default 1;
    }

    access_log /proc/self/fd/1 main if=$loggable;

This feature is a must since it does flood the access logs

akalineskou avatar Oct 04 '22 00:10 akalineskou