Re: no logging with syslogd under FreeBSD

From: Cherife Li <cherife#dotimes.com>
Date: Thu, 10 Apr 2008 21:56:21 +0800


On 2008-4-10 21:52, Matthias Kellermann wrote:
> Hi all,
>
> I'm trying to get logging with syslogd on a FreeBSD test machine to
> work. This is my minimal sample config with haproxy-1.2.17:
>
> # cat /usr/local/etc/haproxy.conf
> global
> daemon
>
> log 127.0.0.1 syslog debug
>
> user www
> group www
>
> listen http_proxy 192.168.0.200:80
> mode http
> clitimeout 150000
> srvtimeout 30000
> contimeout 2000
> option forwardfor
> balance roundrobin
> server node1 192.168.0.201:80 check weight 3
> server node2 192.168.0.202:80 check weight 3
>
> syslogd is listening on the local machine:
>
> # sockstat -4 | grep syslogd
> root syslogd 17312 6 udp4 127.0.0.1:514 *:*
>
> syslog facility is going to /var/log/messages
>
> # grep syslog /etc/syslog.conf
> *.notice;authpriv.none;syslog.*;kern.debug;lpr.info;mail.crit;news.err
> /var/log/messages
>
> But haproxy won't log anything. Any ideas?
Start syslogd with network support, that's to say, add '-r' to syslogd daemon, then restart syslogd.
>
> -Matthias
>

-- 
Rgds,
Cherife.
Received on 2008/04/10 15:56

This archive was generated by hypermail 2.2.0 : 2008/04/10 16:00 CEST