Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2005 10:24:10 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Nikolay Pavlov <quetzalcoatl@bk.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: syslogd: Logging subprocess ... exited with status 126 
Message-ID:  <200506261024.aa51466@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Sun, 26 Jun 2005 12:16:49 %2B0300." <20050626091649.GA1919@zone3000.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> It's not a simple log file, but FIFO and I thought that this should working.
> If I misunderstood something is there any chance to send syslog output to FIFO
> file or pipe, because the query-log from named that I'm going to handle is
> very extensive. 

If I remember correctly, to send data to a FIFO, you can specify
the FIFO as a regular file in /etc/syslogd.conf. However, you will
have to be careful to make sure that there is a program reading the
FIFO at all times, if you are to avoid syslogd getting confused.

Instead of using a named FIFO, you can directly run your log handling
program by using the pipe in syslogd.conf, so if your program to
handle messages is in /usr/local/libexec/log_crunch.pl you can then
use the "| /usr/local/libexec/log_crunch.pl" in syslogd.conf.

	David.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506261024.aa51466>