unit
unit copied to clipboard
Feature: Access Logs filtering
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.
Any ideas on how such configuration may look like? Or maybe we just need to allow configuring access log in the router objects somehow?
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