Thanks, that seems to have helped.
On 2 May 2012 23:06, Baptiste bed...@gmail.com wrote:
Hi,
You should enable http-server-close option in both frontend and
backend or in defaults section.
Otherwise, the first request is the only logged (tunnel mode).
cheers
On Wed, May 2, 2012 at 12:53 PM, Peter Gillard-Moss
pgill...@thoughtworks.com wrote:
Hello,
I am observing some strange behaviour with haproxy and logging on Ubuntu
Oneiric.
haproxy is setup to log to /dev/log and logs successfully appear in
/var/log/syslog (via rsyslog).
Well, some of them do. Some just don't.
If I look on the servers we are proxying/load balancing I can see
requests
in their logs but they aren't in the haproxy output in /var/log/syslog.
I've also noticed that if I do a wget then the entries appear, however
from
a browser they don't appear.
I've also noticed that the entries in haproxy aren't always in the server
logs and the entries in the server logs often aren't in haproxy.
Any help is much appreciated.
We are using HA-Proxy version 1.4.15 2011/04/08
This is our configuration:
global
daemon
maxconn 256
log /dev/log local0
defaults
mode http
timeout connect 5000ms
timeout client 5ms
timeout server 5ms
option httplog
frontend http-in
bind *:80
default_backend servers
log global
backend servers
server one one:8080
server two two:8080
Thanks
Peter
--
Peter Gillard-Moss
Developer | ThoughtWorks Studios | Technical Solutions
http://www.thoughtworks-studios.com
--
Peter Gillard-Moss
Developer | ThoughtWorks Studios | Technical Solutions
http://www.thoughtworks-studios.com