[syslog-ng] freebsd syslog-ng error

William Bell williamb at cwie.net
Tue Sep 20 17:04:41 CEST 2005


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 at lists.balabit.hu
[mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of fico gid
Sent: Tuesday, September 20, 2005 2:10 AM
To: syslog-ng at 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 at lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html



More information about the syslog-ng mailing list