Re: logging to a pipe?

This is a discussion on Re: logging to a pipe? within the Bind Users forums, part of the DNS and Related Forums category; That is the option I have running successfully on several nameservers to give usage data log to stderr and then ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2004
Peter
 
Posts: n/a
Default Re: logging to a pipe?

That is the option I have running successfully on several nameservers to
give usage data

log to stderr and then
named 2>&1 | /path/logprocessor.pl

I found this from http://www.campin.net/DNS/graph.html, see the comments in
the top of the script at http://www.campin.net/DNS/bind9-query-logger.txt

Peter

"Marten Lehmann" <lehmann@cnm.de> wrote in message
news:cgkget$1v9u$1@sf1.isc.org...
> > Correct. The ARM makes it crystal-clear that the reserved word "file"
> > is followed by a pathname enclosed in double quotes.

>
> Ok so far. But I need to parse the log in realtime and what's easier
> than logging to a script which can select the useful entries and react
> accordingly? A script can receive input continuesly but it's hard to
> read only new entries of a logfile, especially when it's truncated or
> renamed after a certain size. The workaround would be to log everything
> to stderr so I could start named with
>
> /var/tmp/logger.pl
>
> But I don't know where BIND prints the stderr-output, obviously not to
> stderr.
>
> Regards
> Marten
>
>
>




Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0