From owner-freebsd-questions Sun Jan 27 6:28: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from deckard.addix.net (deckard.addix.net [194.64.167.10]) by hub.freebsd.org (Postfix) with ESMTP id C59B437B404 for ; Sun, 27 Jan 2002 06:28:03 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by deckard.addix.net (8.11.6/8.11.6) with ESMTP id g0REQTY51903; Sun, 27 Jan 2002 15:26:29 +0100 (CET) (envelope-from ohoyer@deckard.addix.net) Date: Sun, 27 Jan 2002 15:26:28 +0100 (CET) From: Olaf Hoyer To: Andreas Ntaflos Cc: Subject: Re: Alternate logfile for log_in_vain In-Reply-To: <20020126164027.A1564@Deadcell.ANT> Message-ID: <20020127152512.D51898-100000@deckard.addix.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 26 Jan 2002, Andreas Ntaflos wrote: > On Sat, Jan 26, 2002 at 12:11:39PM +0100, Olaf Hoyer wrote: > > > > Well, I have a FreeBSD 4.4-R box running, and I just activated the options > > log_in_vain via sysctl. > > > > Ok, it does what it is intended to do, but it clobbers up my > > /var/log/messages. > > > > In which way might I redirect those output to, say, /var/log/log_in_vain? > > > > Any way to do it via some syslog entry? > > > > Well I am not sure if there is a specific facility for log_in_vain, but you > could, and should, log any kernel messages (and log_in_vain messages come > from the kernel) to a specific file, kinda like this in syslog.conf: > > kern.* /var/log/kern.log #put kernel log stuff to kern.log > kern.none /var/log/messages #don't log kernek stuff to messages > Hi! Well, exactly thats what I wanted. I figured out the first one myself about an hour after writing this, but will play with the second line a bit... Thanks a lot Olaf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message