I've got an HAProxy instance configured to log to a special home-grown daemon that chucks the log files into a database. I've seen some issues on some log messages where the host_header
field is truncated for no specific reason. For example, instead of:
56:34 haproxy[892]: 1.2.3.4:17907 [14/May/2012:13:56:33.999] app.prod app.prod/webp01 0/0/0/161/524 200 33627 - - --NI 0/0/0/0/0 0/0 {application.example.com} "GET /?feed=rss2 HTTP/1.0"
I see:
56:34 haproxy[892]: 1.2.3.4:17907 [14/May/2012:13:56:33.999] app.prod app.prod/webp01 0/0/0/161/524 200 33627 - - --NI 0/0/0/0/0 0/0 {application.examp} "GET /?feed=rss2 HTTP/1.0"
Note the host_header has been truncated from application.example.com
to application.examp
.
This is throwing a few spanners in the works of trying to farm through these logs, so is there any reason why this is happening?
HAProxy version is 1.4.18-0ubuntu1
running on Ubuntu 12.04.