Logging X-forward-for on ATS

258 Views Asked by At

Is there a configuration setting I can do to make Apache traffic server to log XFF header into the logs ? I have gone over the ATS documentation and there's no mention of this. I see various logging formats explained.

1

There are 1 best solutions below

0
Miles Libbey On

Using the custom log field 'cqh' you can log the value of any header. So in your logging.config, you'd have a field '%<{X-Forwarded-For}cqh>'