At first I thought I could use a http-request add-header command to do this, but that doesn’t work. After finding this: https://www.mail-archive.com/haproxy@formilux.org/msg25061.html I think your hack is the only way to do it. Although I definitely think it should have a way to add headers using log-format syntax.