This is a discussion on Re: logging to a pipe? within the Bind Users forums, part of the DNS and Related Forums category; On Thu, Aug 26, 2004 at 01:05:02PM +0200, Marten Lehmann wrote: > > Correct. The ARM makes it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Thu, Aug 26, 2004 at 01:05:02PM +0200, Marten Lehmann wrote:
> > 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 Check out retail, a stateful tailing utility. http://www.ranum.com/security/computer_security/code/ Or use GNU tail, which supports the "--follow=name" option. And of course, a reasonable log parser will support various forms of log resetting anyway. If the log parser you're using doesn't support it, that's probably a sign... -- Ed Schmollinger - schmolli@frozencrow.org -- Attached file included as plaintext by Ecartis -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBLgNouUf1YjPlx/ARAkkUAJ9P23jVADmT8sEUpV5yN2QUWSSDrQCfU1v2 v2MC/q0aUNMVLQlpXILTf70= =O4lG -----END PGP SIGNATURE----- |