Date: Mon, 03 Nov 2008 10:47:39 -0500 From: Mike Tancsa <mike@sentex.net> To: "Poul-Henning Kamp" <phk@phk.freebsd.dk> Cc: freebsd-stable@freebsd.org Subject: Re: fifo log problem Message-ID: <200811031547.mA3FlVVs024666@lava.sentex.ca> In-Reply-To: <43295.1225726136@critter.freebsd.dk> References: <Your message of "Mon, 03 Nov 2008 09:48:08 EST." <200811031448.mA3Em2Ow024387@lava.sentex.ca> <43295.1225726136@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811031547.mA3FlVVs024666>