<div dir="ltr">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.<div><br></div><div>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}' &</div><div><br></div><div>(not tested, but have used similar before)</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>-- <br>Bob Harold<br>hostmaster, UMnet, ITcom<br>Information and Technology Services (ITS)<br><a href="mailto:rharolde@umich.edu" target="_blank">rharolde@umich.edu</a><br>734-647-6524 desk<br></div></div>
<br><div class="gmail_quote">On Mon, Mar 9, 2015 at 9:55 PM, Alan Clegg <span dir="ltr"><<a href="mailto:alan@clegg.com" target="_blank">alan@clegg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<br>
On 3/9/15 3:04 AM, Peter Olsson wrote:<br>
> Hello!<br>
><br>
> Is it possible to have separate query logs for different views?<br>
><br>
> I tried putting this in the view block, but it failed with "unknown<br>
> option 'logging'":<br>
><br>
> logging { channel logging_query { file<br>
> "/var/log/named/query-inside.log" versions 30 size 5M; print-time<br>
> yes; severity debug; }; };<br>
<br>
Nope.  Logging is global only, not per view.<br>
<br>
AlanC<br>
-----BEGIN PGP SIGNATURE-----<br>
Comment: GPGTools - <a href="https://gpgtools.org" target="_blank">https://gpgtools.org</a><br>
<br>
iQEcBAEBCgAGBQJU/k8MAAoJEOW2o5eiJADbLAcH/R00aujdwht4RNRrfGbgIWRM<br>
057lnBKLMvWRR2IJmJBRcOvJW3teVXYCwlu4BYhfswKTfFbX9Xnb8ZfnmZuHurEv<br>
2Itmv2R4Fx1RG3U4JLfxZRlgjBKdiVXHnITO94h9YygY7F91M1MjtdPa5SqcC5DA<br>
Ij2dr4kD6ePxJjkaWOsId96T5X6FAQYboWAFeY6dvHxmU3DFafXyDybD7tV00AOX<br>
qNgQMTuh6uM3mopqQonMFpr2O9O8eypZaioX4+53g34X9ID7lnfeDnkE8FikvwzW<br>
lmTMLLHai5myi4TMkWB6dNJ2nICWpG2hCOkdkEb1UdGCJMEod2mqGQpzrT1QS1k=<br>
=vfB1<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div><br></div>