Date: Tue, 6 Feb 2007 14:03:32 +0100 From: Ewald Jenisch <a@jenisch.at> To: freebsd-questions@freebsd.org Subject: syslog behaving differently with "-d" (was: "syslog from Cisco -> FreeBSD not working") Message-ID: <20070206130332.GA33414@aurora.oekb.co.at> In-Reply-To: <20070206110009.GA93053@aurora.oekb.co.at> References: <20070206110009.GA93053@aurora.oekb.co.at>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 06, 2007 at 12:00:09PM +0100, Ewald Jenisch wrote: > Hi, > > I'm running into a problem configuring my syslogd in order to accept > messages from Routers (Cisco). > > > Here's what I did in my syslog.conf: > local7.* /var/log/cisco-syslog Hi, A couple of hours after my original question I found out an interesting point: When running syslogd with the "-d" (debug-flag) messages get written into the file configured in /etc/syslog.conf - when running without the debug-flag nothing gets written. To be specific: With the above syslog.conf entry and /etc/rc.conf containting 'syslogd_flags="-d"' I get the following output on the console: cvthname(192.168.9.95) logmsg: pri 275, flags 0, from switch1-1, msg 1390: Feb 6 13:59:40 MET: %SYS-5-CONFIG_I: Configured from console by ej1 on vty0 (192.168.9.16) Logging to FILE /var/log/cisco-syslog Sure enough this log message is in the cisco-syslog file. As soon as I turn off debug in syslog (i.e. running without the "-d" flag) nothing gets written to the cisco-syslog file. Why are messages only written to the file when running syslogd in debug mode?? TIA for any clue, -ewald
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070206130332.GA33414>