From owner-freebsd-stable@FreeBSD.ORG Mon Nov 3 15:58:02 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 BA91E1065677 for ; Mon, 3 Nov 2008 15:58:02 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 7EEF48FC1C for ; Mon, 3 Nov 2008 15:58:02 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id C7A15170E3; Mon, 3 Nov 2008 15:28:57 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id mA3FSuMB043296; Mon, 3 Nov 2008 15:28:57 GMT (envelope-from phk@critter.freebsd.dk) To: Mike Tancsa From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 03 Nov 2008 09:48:08 EST." <200811031448.mA3Em2Ow024387@lava.sentex.ca> Date: Mon, 03 Nov 2008 15:28:56 +0000 Message-ID: <43295.1225726136@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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:58:02 -0000 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 ? -- 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.