ingress-nginx icon indicating copy to clipboard operation
ingress-nginx copied to clipboard

Enabling of Default Backend access log for location / (404)

Open cattapan opened this issue 2 years ago • 1 comments

Be able to enable access log for the default backend location /. It's super hard to troubleshoot errors 404, when the Host header is "wrong" (i.e: does not match any of the ingress rules)

cattapan avatar Aug 05 '22 20:08 cattapan

@cattapan: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 05 '22 20:08 k8s-ci-robot

@cattapan I think I've been looking for the same feature you're requesting and was successful in enabling the default backend access logs by using the configuration option in https://github.com/kubernetes/ingress-nginx/blob/e6ff97fbbe4efc39ec673a3ecda734a9a0e880b7/internal/ingress/controller/config/config.go#L121

rymir avatar Oct 17 '22 19:10 rymir