Hello,

yes, H2 behaves very differently; due to protocol differences but also
due to other changes. In the beginning H2 was only implemented in the
frontend and every transaction was downgraded to HTTP/1.1 internally.
This was later changed to an internal generic "HTX" representation
that allowed to unify the protocol stack.


To return relative URIs form in the logs, I guess you could
reconstruct the string manually with pathq (untested):
\"%HM%[pathq]%HV\" as opposed to %r


pathq is a HTTP sample designed to do exactly this, always returning
the URI in a relative format:

http://docs.haproxy.org/2.6/configuration.html#7.3.6-pathq


Not sure what %HU does, I assume it refers to the url not pathq.



I agree that doc updates are needed at least in section "8.2.3. HTTP
log format" and "8.2.6. Custom log format".



Lukas

Reply via email to