From owner-freebsd-stable@FreeBSD.ORG Mon Nov 3 15:47:34 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 6A4811065689 for ; Mon, 3 Nov 2008 15:47:34 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 325FE8FC1F for ; Mon, 3 Nov 2008 15:47:34 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id mA3FlW0D011176; Mon, 3 Nov 2008 10:47:32 -0500 (EST) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id mA3FlVVs024666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 10:47:31 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <200811031547.mA3FlVVs024666@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 03 Nov 2008 10:47:39 -0500 To: "Poul-Henning Kamp" From: Mike Tancsa In-Reply-To: <43295.1225726136@critter.freebsd.dk> References: <43295.1225726136@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: freebsd-stable@freebsd.org Subject: Re: fifo log problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 15:47:34 -0000 At 10:28 AM 11/3/2008, Poul-Henning Kamp wrote: >In message <200811031448.mA3Em2Ow024387@lava.sentex.ca>, Mike Tancsa writes: > >I have been taking a look at the fifolog(1) system in RELENG_7 and I > >must be missing something obvious. I created a file using default params > >e.g > > > >fifolog_create /var/log/all.fifo > >and then in /etc/syslog.conf I have > >*.* /var/log/all.log > >*.* | /usr/sbin/fifolog_writer /var/log/all.fifo > > > >It seems to work for the most part, but there are entries that are > >missing throughout the log > > > >e.g. in the traditional all.log I have > ># wc all.log > > 4833 55212 398099 all.log > > > >yet the fifo log file I have > > > ># fifolog_reader all.fifo | wc > >>From 0 Wed Dec 31 19:00:00 1969 > >To 1225722724 Mon Nov 3 09:32:04 2008 > >Read from 0 > > 223 2783 23271 > > > >There does not seem to be any pattern as to what it discards / keeps > >Try using "cat" instead of fifolog_writer, so we can tell on which >side of the pipe we are looking for the trouble ? Hi, Seems to work fine with cat *.* /var/log/all.log *.* | /usr/sbin/fifolog_writer /var/log/all.fifo *.* | cat > /var/log/all.cat ---Mike >-- >Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 >phk@FreeBSD.ORG | TCP/IP since RFC 956 >FreeBSD committer | BSD since 4.3-tahoe >Never attribute to malice what can adequately be explained by incompetence.