HAProxy log outgoing requests

haproxylogging

Currently, my HAProxy logs have information about the incoming requests: HTTP version, method, host, path, and headers.

I am trying to debug my HAProxy config, and need to know what the resulting outgoing requests are, particularly the host and path.

How do I log outgoing requests so that I can debug HAProxy?

Best Answer

"Outgoing" is relative, I believe, to whether you are proxying or reverse-proxying. I'd give you a detailed answer, but I think it's easier to point you to the specific CustomLog format of the documentation. http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#8.2.4