This is already present in haproxy 1.5. 1.5 has a `log-format` parameter which lets you specify a custom format. The format has a `%U` parameter which is the number of bytes sent by the client.
-Patrick On 2013/15/05 02:23, Joel Krauska wrote: > The HTTP Log Format tracks bytes_read, which appears to be the number > of bytes in the HTTP response send from the backend to the requesting > client. > > https://code.google.com/p/haproxy-docs/wiki/HTTPLogFormat > > I feel also that bytes_sent may be an interesting field to track. > > For example: An Image upload site may care a lot more about image > uploads to their servers than downloads. (esp for an upload backend pool) > > Checking the ratio of bytes_read vs bytes_sent also provides > interesting insight in to how an application is performing. > > Is there anyway I can lobby to get bytes_sent added to future > revisions of the HTTP Log format? > > Is there any other method to collect this info? > > The stats page is already collecting Bytes in and Bytes out, but I'm > missing it in the log format, so I can't look at it on a per-request > level. > > Thanks, > > Joel