Your ps output shows that syslogd is not running with the flags you've
defined in your rc.conf.
It's still running in secure ( -s ) mode. Also using "-b 127.0.0.1"
would likely be preferred over "-a 127.0.0.1/32"
James.
On Mar 11, 2009, at 1:39 AM, Weschmann Michael wrote:
Hi,
I found the entries concerning "no logging with syslogd under
FreeBSD" in the archive (http://www.formilux.org/archives/haproxy/subject.html
).
But my system doesn't log anything from haproxy:
I use haproxy-1.2.18.tar.gz on Freebsd 7.1
My /usr/local/etc/haproxy/haproxy.cfg:
global
log 127.0.0.1 local0 info
maxconn 4096
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
option logasap
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen tbsrelay 213.xxx.xxx.xxx:20904
log global
balance source
mode tcp
option tcplog
server tbs_1 10.2.xxx.xxx:4746 check port 4746
My /etc/rc.conf contains:
syslogd_enable="YES"
syslogd_flags="-a 127.0.0.1/32"
I've set this because the syslogd use by default option -s
(ps auxw | grep syslogd
root 621 0.0 0.1 3184 1048 ?? Is 3Feb09 0:11.53 /usr/
sbin/syslogd -s)
I've tested securelevel 0 and 1.
Thanks for your help,
Michael
From: Rory <rory.amos#gmail.com>
Date: Wed, 22 Oct 2008 15:51:16 +0800
hi , i am tring to get logging with syslogd on a FreeBSD test
machine to work. This is my minimal sample config with haproxy-1.2.18:
cat /usr/local/etc/haproxy.conf
global
log 127.0.0.1 local0 debug
maxconn 32768
user nobody
group nobody
daemon
nbproc 8
listen web-balancer
log global
bind 192.168.15.81:80
mode http
stats uri /haproxy-stats
stats realm Haproxy\ statistics
stats auth another:another
balance roundrobin
maxconn 32768
clitimeout 60000
srvtimeout 60000
contimeout 5000
retries 3
server web1 192.168.15.88:80 weight 3 check
option forwardfor
syslogd is listening on the local machine: *# sockstat -4 | grep
syslogd*
root syslogd 1586 7 udp4 *:514 *:*
syslog facility is going to /var/log/haproxy
# grep local0 /etc/syslog.conf
local0.* /var/log/haproxy.log
But haproxy won't log anything. Any ideas?
Rory. Received on 2008/10/22 09:51
Weschmann Michael
Informatik / Operations
Sourcag AG
Emil Frey-Strasse 100
CH-4142 Münchenstein
Tel: +41 (0) 61 418 7552
Fax: +41 (0) 61 418 7276
mailto:michael.weschm...@sourcag.ch
Diese Mitteilung kann vertrauliche und/oder persoenliche
Informationen erhalten. Sie erfolgt ungeschuetzt und koennte
waehrend der Uebermittlung von Dritten eingesehen und veraendert
werden. Sollten Sie diese Mitteilung irrtuemlich erhalten haben,
bitten wir Sie, den Absender zu informieren und die Mitteilung in
Ihrem System gaenzlich zu loeschen. Unbewilligtes Kopieren,
Offenbaren und Verbreiten von Inhalten dieser Mitteilung ist
strengstens verboten.
Saemtliche per E-Mail uebermittelten Inhalte, insbesondere auch
Offerten, sind unverbindlich und ohne Gewaehr. Der Adressat hat sich
auf den entsprechenden Informationsquellen oder schriftlichem Weg
ueber den Inhalt zu verifizieren.