I'm deploying Traefik v2 to Kubernetes (EKS) via Helm and I understand how to enable access logs. I have two questions, though I'm afraid the answer to both may be that "it's not possible":
-
Is it possible to filter out /ping and /metrics endpoints? We're using CloudWatch for logs, so there's a real monetary cost in aggregating these logs, but not a lot of value. I saw this open issue: Filtering out ping access logs · Issue #6861 · traefik/traefik · GitHub so I don't have a lot of hope that this is possible from Traefik. Perhaps it's possible to filter these out in the fluent-bit log collector?
-
Is there any way to enable access logs on only specific IngressRoute resources? This could ultimately solve #1 as well.
Thanks for any ideas!