Hi,

On Fri, Mar 20, Ha Quan Le wrote:
> global 
> log /var/log local0 
> log /var/log local1 notice 

Are you sure that /var/log is a syslog socket ? Usually it's a directory
so that's not going to work.
http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-log

> frontend pgdbplatform_frontend_cluster01 
> #bind *:5432 
> bind /var/lib/haproxy/test accept-proxy user haproxy group haproxy 
> mode tcp 
> timeout client 168h 
> option tcplog 
> option logasap 
> default_backend pgdbplatform_backend_cluster01 
> 
> backend pgdbplatform_backend_cluster01 
> mode tcp 
> option tcplog 
> balance roundrobin # Load Balancing algorithm 
> timeout server 168h 
> #server Primary 10.236.49.12:5432 check 
> #server HotStandby 172.24.22.68:5432 check 
> #server AsyncStandby 10.236.134.187:5432 check 
> server clear /var/lib/haproxy/test send-proxy user haproxy group haproxy 

What are you trying to do ? Now you've tried to create
a loop: frontend pgdbplatform_frontend_cluster01 listens on the
unix socket and backend pgdbplatform_backend_cluster01 tries to
send the traffic back over the same socket --> loop ?

In another thread (http://marc.info/?l=haproxy&m=142681568229626&w=2)
your problem was that rsyslog didn't create haproxy logfiles ?
Is your rsyslog listening for udp/port 514
(netstat -aun | grep 514) ?

Does your logger command support -n option to send udp packets ?
(man logger) if it does then try to send log messages
logger -d -n 127.0.0.1 −p local0.info "Test message"
and see if you can get rsyslog to accept the log messages.

-Jarno

-- 
Jarno Huuskonen

Reply via email to