<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: style=" font-size:="" 12pt;="" color:="" #000000"=""><div style="font-family:'arial' , 'helvetica' , sans-serif">Hi guys,<br><br>I want a clarity whether we can have individual logging statement per view basis ? Whatever i found on google, i think we can't. <br><div>My use case for separate logging statement is as follows - <br></div><br><div>In my recursive server, i have 2 views, one for my internal clients and one for Internet ; i am running Internet view just for catch hold of scanning IPs (type of honeypot). </div><div><span style="text-decoration:underline"><br></span></div><div><span style="text-decoration:underline">Syntax of 2 views are as follows -</span> <br></div><br><div>view "INTRANET" { <br></div><div>                match-clients { PRIVATE.SEGMENTS ; };<br>                recursion yes;<br></div><div>};<br></div><br><div>view "PUBLIC" {<!-- --><br></div><div>                match-clients {  any; };<br>                allow-query { none; } ;<br>                recursion no; <br></div><div>};<br></div><br><div><span style="text-decoration:underline">My logging config is -</span><br></div><br><div>channel queries {<!-- --><br>                file "/var/log/log/queries";<br>                severity info;<br>                print-time yes;<br>                print-category yes;<br>                print-severity yes;<br>                };<br>        category queries {<!-- --><br>                queries;<br>                };<br>channel query-errors {<!-- --><br>                file "/var/log/log/query-errors" versions 5 size 20m;<br>                severity dynamic;<br>                print-time yes;<br>                print-category yes;<br>                print-severity yes;<br>                };<br>        category query-errors {<!-- --><br>                query-errors;<br>                };<br><br>        channel default { file "/var/log/log/default" versions 5 size 20m; severity info; print-time yes; print-category yes; print-severity yes; };<br>        category client { default ; } ;<br>        category general { default ; } ; <br>        category unmatched { default ; } ;<br></div><br><br><br><div>By this config, i am getting all the query logs (for both the views) in a single file and also i am getting REFUSED statements in query-errors category file.<br></div><div>I want to achieve to have separate query log file for each view and doesn't want  to log REFUSED queries (which are for PUBLIC view) in query-error category.<br></div><br><div>please help how can i achieve this.<br></div><br><div>Thanks,<br></div><div>Gaurav Kansal</div></div><div data-marker="__QUOTED_TEXT__"><br></div></div>
<br><html><head></head><body>

<p><a href="https://rashtragaan.in/" target="_blank"><img style="width: 450px; height: 113px;" src='https://email.gov.in/videos/images/Disclaimer_Independence_2021_2.png'/></a></p>

</body></html>

<br><br>
<p class="MsoNoSpacing" style="text-align: justify;"><strong><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Disclaimer:<o:p></o:p></span></strong></p><p class="MsoNoSpacing" style="text-align: justify;"><span style="font-family: Verdana, sans-serif; font-size: 9pt;">This e-mail and its attachments may contain official Indian Government information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. The responsibility lies with the recipient to check this email and any attachment for the presence of viruses. </span><span style="font-family: Verdana, sans-serif; font-size: 9pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 9pt;"> </span></p></body></html>