From owner-freebsd-questions Sat Jun 10 10:28:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23]) by hub.freebsd.org (Postfix) with ESMTP id E9AB837B50B for ; Sat, 10 Jun 2000 10:28:18 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat47.x-treme.gr [212.120.197.239]) by nscache2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id UAA21825; Sat, 10 Jun 2000 20:28:07 +0300 Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e5BDx6S13974; Sun, 11 Jun 2000 16:59:06 +0300 (EEST) Date: Sun, 11 Jun 2000 16:59:06 +0300 From: Giorgos Keramidas To: svga Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Filtering out ipfw from /var/log/messages Message-ID: <20000611165906.C13693@hades.hell.gr> References: <3940F65E.4571F05C@polbox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3940F65E.4571F05C@polbox.com>; from svga@polbox.com on Fri, Jun 09, 2000 at 03:51:26PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 09, 2000 at 03:51:26PM +0200, svga wrote: > Hello, > > How to filter out messages including ipfw: which syslog sends to > /var/log/messages? > Something like below but working. > *.notice;kern.debug;lpr.info;mail.crit;news.err |exec grep -v -e > ipfw: - >> /var/log/messages You can try using: !ipfw *.* /dev/null I havent' tested it with ipfw, but it works with my pppd/ppp so far. - Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message