I’m unsure whether this is a bug or me misunderstanding the documentation.
In haproxy 2.1.2:
According to the documentation, in log-format, %HU should be: HTTP request URI (ex: /foo?bar=baz)
But, for http/2 requests, the full url, including the protocol and hostname is logged instead (https://host/some/url, not/some/url, as I would expect).
I was wondering if you ever managed to figure this out?
I recently upgraded from 2.0 to 2.2 and am encountering the same issue, but using %r. The same happens where it logs the entire URI for http/2 requests, rather then just the path and query string.