approach on parsing the query-log file

JINMEI Tatuya / 神明達哉 Jinmei_Tatuya at
Tue Apr 28 18:40:32 UTC 2009

At Tue, 28 Apr 2009 10:01:02 -0700,
Jonathan Petersson <jpetersson at> 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