Hello

i have installed haproxy in a machine t2000 solaris10-sparc, it's work in 
tcp mode and as a load balancer of a transactional switchs, it's has a good 
performance but my problem is that i can see a log with all the transaction 
and and how are being balanced. we are use the daemon syslog-ng and the 
facility local0 but this not writing anything in the file that we indicate 
in syslog-ng.conf file, but if we try with the command logger it work.

we add this line to syslog-ng.conf file

destination d_haproxy { file("/var/log/haproxy.log"); };

filter f_haproxy   { facility(local0); };

log { source(s_all); filter(f_haproxy); destination(d_haproxy); };

and the haproxy.conf file

global
       log 127.0.0.1   local0 notice
       user haproxy
       group  haproxy
       chroot /export/haproxy #directory
       daemon
       nbproc   7
       pidfile /var/run/haproxy.pid

defaults
        log global
        option tcplog
        option redispatch
        contimeout      3000
        clitimeout      5000
        srvtimeout      5000
        option forceclose

listen swtwlb 10.44.54.214:3125
       mode tcp
       balance roundrobin
       server swAtw 192.168.119.21:19001  weight  77
       server swBtw 192.168.111.91:19001  weight  179

why this doesn't work?
how i can see the transactions log?
-----------------------------------------------------------
/export/install/haproxy-1.3.18-sol-sparc 
-f /etc/haproxy/haproxy.cfg 
-p /var/run/haproxy.pid

Gustavo A. Jiménez Correa
Administrador de Infraestructura
Aplicaciones S.A.
(57 1) 317 2877 ext. 105
Bogotá, Colombia
www.aplicaciones.com.co


Reply via email to