Is it possible to have separate query logs for different views?

Peter Olsson list-bind-users at jyborn.se
Tue Mar 10 18:10:36 UTC 2015


On Tue, Mar 10, 2015 at 02:05:50PM -0400, Bob Harold wrote:
> Note that named includes the name of the view in the query log lines, so
> you could copy them from the query log to separate files, even in real
> time, if desired.
> 
> tail -f named-queries | awk '/ view inside / {print $0 >
> named-queries-inside; next} / view outside / {print $0 >
> named-queries-outside; next} {print $0 > named-queries-other}' &
> 
> (not tested, but have used similar before)
 
Ok, I'm officially blind... Should have seen this myself.
This will solve my problem.

Thanks!

Peter Olsson
 
> 
> -- 
> Bob Harold
> hostmaster, UMnet, ITcom
> Information and Technology Services (ITS)
> rharolde at umich.edu
> 734-647-6524 desk
> 
> On Mon, Mar 9, 2015 at 9:55 PM, Alan Clegg <alan at clegg.com> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> >
> > On 3/9/15 3:04 AM, Peter Olsson wrote:
> > > Hello!
> > >
> > > Is it possible to have separate query logs for different views?
> > >
> > > I tried putting this in the view block, but it failed with "unknown
> > > option 'logging'":
> > >
> > > logging { channel logging_query { file
> > > "/var/log/named/query-inside.log" versions 30 size 5M; print-time
> > > yes; severity debug; }; };
> >
> > Nope.  Logging is global only, not per view.
> >
> > AlanC
> > -----BEGIN PGP SIGNATURE-----
> > Comment: GPGTools - https://gpgtools.org
> >
> > iQEcBAEBCgAGBQJU/k8MAAoJEOW2o5eiJADbLAcH/R00aujdwht4RNRrfGbgIWRM
> > 057lnBKLMvWRR2IJmJBRcOvJW3teVXYCwlu4BYhfswKTfFbX9Xnb8ZfnmZuHurEv
> > 2Itmv2R4Fx1RG3U4JLfxZRlgjBKdiVXHnITO94h9YygY7F91M1MjtdPa5SqcC5DA
> > Ij2dr4kD6ePxJjkaWOsId96T5X6FAQYboWAFeY6dvHxmU3DFafXyDybD7tV00AOX
> > qNgQMTuh6uM3mopqQonMFpr2O9O8eypZaioX4+53g34X9ID7lnfeDnkE8FikvwzW
> > lmTMLLHai5myi4TMkWB6dNJ2nICWpG2hCOkdkEb1UdGCJMEod2mqGQpzrT1QS1k=
> > =vfB1
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> > unsubscribe from this list
> >
> > bind-users mailing list
> > bind-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/bind-users
> >

> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users


More information about the bind-users mailing list