approach on parsing the query-log file

Jonathan Petersson jpetersson at garnser.se
Tue Apr 28 20:21:10 UTC 2009


I did try to run the following option:
syslog named;

but when matching on named.* in syslog.conf there's no output.

/Jonathan

2009/4/28 JINMEI Tatuya / 神明達哉 <Jinmei_Tatuya at isc.org>:
> At Tue, 28 Apr 2009 10:01:02 -0700,
> Jonathan Petersson <jpetersson at garnser.se> wrote:
>
>> So I gave tail a try in perl both via File::Tail and by putting tail
>> -f in a pipe. Neither seems to be handling the logrotation well. In my
>> case I'm running a test sending 1 million queries, of those half is
>> picked up by File::Tail if you define how often it should re-read the
>> file but using tail -f straight or File::Tail without arguments just
>> stops once the log has rotated as it doesn't seam to figure out to
>> continue onto the new file.
>
> I've never tried it, but how about letting named dump log messages to
> syslog, and letting syslogd forward all messages to a separate process
> via a pipe (assuming your syslogd supports that)?
>
> ---
> JINMEI, Tatuya
> Internet Systems Consortium, Inc.
>



More information about the bind-users mailing list