syslog-ng not logging

Peter Boosten peter at boosten.org
Wed Dec 26 19:40:20 PST 2007


Quoting Livia Markoczy <livia.markoczy at utdallas.edu>:

> I've just installed syslog-ng from ports on 7.0B4.
>
> I put the following into /etc/rc.conf
>
> syslog_ng_enable="YES"
> syslog_ng_config="-u daemon"
> syslog_ng_pid="/var/run/syslog-ng.pid"
>
> And my syslog-ng.conf file is very similar to the example one (plus
> some special destinations for things that come in via UDP).
>
> I killed the syslog process and started
>
>  /usr/local/etc/rc.d/syslog-ng start
>
> and everything seemed to start up just fine.  No errors reported, runing
>
>    rc.d/syslog-ng status
>
> tells me that it is running, as does ps.
>
> But nothing has logged anywhere, including to console, since the time I
> killed the system syslogd.
>
> Any suggestions of where I should look to debug this?
>

Yup, file permissions. While your syslog-ng runs as daemon, it has no  
permission to log to files owned by root (syslogd).
I solved that by logging into a different subdir owned by daemon.

Peter
-- 
http://www.boosten.org


More information about the freebsd-questions mailing list