approach on parsing the query-log file
JINMEI Tatuya / 神明達哉
Jinmei_Tatuya at isc.org
Tue Apr 28 18:40:32 UTC 2009
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)?
Internet Systems Consortium, Inc.
More information about the bind-users