RE: [syslog-ng] freebsd syslog-ng error
The problem you are having is in attempting to use linux conventions in freebsd. You will need to use /var/run/log in place of /dev/log and instead of /proc/kmsg you will most likely have to use file("/dev/klog"); Changing these two will get you the results you need. -William B -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of fico gid Sent: Tuesday, September 20, 2005 2:10 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] freebsd syslog-ng error Hi there, im trying to setup a syslogng server to collect logs from a few of my routers. I have installed syslogng and modified the script as below : --start-- ## syslog-ng source remote { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); udp(ip(158.0.1.1) port(514)); tcp(ip(158.0.1.1) port(514) keep-alive(yes)); }; destination std { file("/var/log/hosts/$HOST/$YEAR/$MONTH/$DAY/$FACILITY" owner(root) group(root) perm(0644) dir_perm(0755) create_dirs(yes)); }; log { source(remote); destination(std); }; destination authlog { file("/var/log/auth.log"); }; destination cron { file("/var/log/cron.log"); }; destination debug { file("/var/log/debug.log"); }; destination kern { file("/var/log/kern.log"); }; destination user { file("/var/log/userlog"); }; --end-- somehow when i start the syslog-ng , it doesnt work and gives the error below : io.c: bind_unix_socket(): bind failed /dev/log (Operation not supported) Error initializing configuration, exiting. The syslog-ng by default config works fine. What am i doing wrong here ? fico _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (1)
-
William Bell