Does anyone know how to pass custom headers to the Traefik access log? The doc says I can apply customised CLF format. But it doesn't seem that I can inject custom headers into the log. I'd like to pass CF-IPCountry and CF-IPCity from Cloudflare to the traefik logs for further processing by Elastic. In Nginx I can define a variable by passing any Header value to it. And then define custom log format with that variable.
And BTW, I haven't even tried yet If I can force Traefik to pass any headers other than X-Forwarded...
@bluepuma77 the issue is not about the format. But rather about what you can place in there. I don't seem to find a way to include headers other than those mentioned in the "Available Fields" list.