I would like to know if it possible to log header using a regex. I've read the documentation but it didn't help me.
I've been facing CDN petitions with a header named aaaa-bbbb-X (X is a random number) that is filling my header logs with aaaa-bbbb-1, aaaa-bbbb-2, aaaa-bbbb-3, etc... I want to drop all of this headers like this:
[accessLog]
filePath = "/var/log/traefik/access.log"
format = "json"
[accessLog.fields.headers]
defaultMode = "keep"
[accessLog.fields.headers.names]
"User-Agent" = "keep"
"Authorization" = "keep"
"Content-Type" = "keep"
"aaaa-bbbb-/.*/" = "drop"
But it seems that regex is ignored. Is there any way to accomplish this? Thanks