@prowla wrote:
Hi!
I'm getting strange behaviour with haproxy-1.5.14-3.el7.x86_64 on CentOS 7...
I've set haproxy to log to syslog with the following lines in the global section of my haproxy.cfg:
log 127.0.0.1 local2 log-send-hostnameThis works fine on an Amazon Linux 6 server with haproxy-1.5.2-2.5.amzn1.x86_64 and I get lines like the following in /var/adm/messages:
Oct 12 16:10:13 server1.myco.co haproxy Gecko/20100101 |http://amp.myco},,"POST /j_security_check HTTP/1.1",10.20.2.9:8002-10.20.2.9:47656
...all good!
But using the identical config (haproxy.cfg same checksum) on CentOS 7 the messages are logged to /var/adm/messages with both "localhost" and hostname, like:
Oct 12 15:55:59 localhost server2.myco. haproxy AppleWebKit/537.36 (KHTML, like |},,"GET /ecc/ HTTP/1.1",10.20.1.180:8002-10.20.1.180:52253
This one has me stumped - is there someting I'm missing?
thanks for looking!
Posts: 1
Participants: 1