From owner-freebsd-stable@FreeBSD.ORG Wed May 21 17:00:22 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F131065675 for ; Wed, 21 May 2008 17:00:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 058E78FC14 for ; Wed, 21 May 2008 17:00:21 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m4LH0KHX020844; Wed, 21 May 2008 19:00:20 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m4LH0DH9020843; Wed, 21 May 2008 19:00:13 +0200 (CEST) (envelope-from olli) Date: Wed, 21 May 2008 19:00:13 +0200 (CEST) Message-Id: <200805211700.m4LH0DH9020843@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, Nick.Barnes@pobox.com In-Reply-To: <74604.1211379394@thrush.ravenbrook.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 21 May 2008 19:00:20 +0200 (CEST) Cc: Subject: Re: syslog console log not logging SCSI problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, Nick.Barnes@pobox.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2008 17:00:22 -0000 Nick Barnes wrote: > Oliver Fromme writes: > > Nick Barnes wrote: > > > One of our FreeBSD boxes has a SCSI controller and disk, which showed > > > problems earlier this week. There was a lot of of chatter from the > > > SCSI driver in /var/log/messages and to the console. However, the > > > console is unattended and we only discovered the problem subsequently > > > because /var/log/console.log didn't show any of the chatter. > > > > The console.* syslog facility only logs real console output, > > i.e. things written to /dev/console. That does _not_ include > > output from the kernel. > > > > For logging kernel output you have to use the kern.* syslog > > facility. > > OK. So when syslogd directs output to the console, it does not also > treat it as console.* output? That's correct. syslogd uses the LOG_CONSOLE flag to distinguish its own output from other console output, otherwise it would run into an infinite loop logging its own output. Best regards Oliver PS: If you're interested in source code, see the printsys() function in src/usr.sbin/syslogd/syslogd.c. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The ITU has offered the IETF formal alignment with its corresponding technology, Penguins, but that won't fly." -- RFC 2549