*From:* Nick Jennings <n...@silverbucket.net> *Sent:* 2014-08-26 19:55:34 EDT *To:* haproxy <haproxy@formilux.org> *Subject:* Getting size of response
> Hi all, is there a way to get the size of a response as it's being > sent out through haproxy during logging? The node.js app (restify) is > sending gzip'd responses but not including a Content-Length due to > some bug. I was wondering if I could get the size with haproxy and > side-step the whole issue. > > Thanks, > Nick > If you're using `option httplog`, the 8th field is bytes sent to client. If you're using `option tcplog`, it's the 7th field. See http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#8.2.3 -Patrick