[syslog-ng] freebsd syslog-ng error

fico gid ficohertz at gmail.com
Wed Sep 21 04:52:33 CEST 2005


Hi William/All,

Is the configuration below enough for me to log some of my routers ?
157.0.1.1 is my syslog server and im getting logs frm a few routers. I
have added appropriate logging commands on the routers to log to the
syslog server.

--start--
## syslog-ng


source remote {
        unix-stream("/var/run/log"); internal(); pipe("/dev/klog");
        udp(ip(157.0.1.1) port(514));
        tcp(ip(157.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);
};

--end--

Your help is much appreciated.

fico



On 9/21/05, fico gid <ficohertz at gmail.com> wrote:
> Hi William,
> 
> Thanks a lot for the tips.. its working now.
> 
> Fico.
> 
> On 9/20/05, William Bell <williamb at cwie.net> wrote:
> > 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