HAProxy community

Http-request capture only logging partial X-Forward-For data

Running on HA-Proxy version 1.7.11 I am able to log full X-Forward-For information with the old:
capture request header X-Forwarded-For len 64
However if using:
http-request capture req.hdr(X-Forwarded-For) len 64
I am only able to capture the last entry in the chain -

Is this by design?
I’d like to use the newer option as it allows me to place the command in appropriate locations in the file for troubleshooting.


The function considers any comma as a delimiter for distinct values. If full-line headers
are desired instead, use req.fhdr().

That’s perfect, exactly what I needed.
Thank you