From owner-freebsd-questions Sun Feb 21 20:55:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id A3C0D110D4 for ; Sun, 21 Feb 1999 20:55:50 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id XAA18436; Sun, 21 Feb 1999 23:57:25 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199902220457.XAA18436@cc942873-a.ewndsr1.nj.home.com> Subject: Re: syslog.conf In-Reply-To: from Patrick Seal at "Feb 21, 99 04:11:23 pm" To: patseal@hyperhost.net (Patrick Seal) Date: Sun, 21 Feb 1999 23:57:25 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Since no one has tackled this yet... Patrick Seal wrote, > I'm trying to restrict the messeges that fill up my messeges log file into > a sudo log. This is what I have so far: > > *.notice;kern.debug;mail.crit /var/log/messages > > !sudo > *.* /var/log/sudo > > But sudo stuff still goes into messeges as well as sudo. How can I > restrict sudo stuff from the messeges file? I've tried sudo.none but that > doesn't seem to help, and the man page isn't much help either. I am not completely familiar with 'sudo,' but my _guess_ is that sudo messages are part of the 'auth' or 'authpriv' facilities. The '*.notice' entry is probably what is routing all of those messages to /var/log/messages. To stop all sudo messages from going to messages, add 'auth.none' to the end of the list. To direct them as you want, auth.* /var/log/sudo Now, again, I am not sure how sudo has logging built into it. But this is a guess and a little more info on syslog.conf. See, 'man syslog.conf.' In fact, the example on the manpage talks about doing 'authpriv' in a special way. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message