<div dir="ltr">Hello J<div>What is it you're actually trying to achieve here?</div><div><br></div><div>Cheers, Greg</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Aug 2022 at 04:24, J Doe <<a href="mailto:general@nativemethods.com">general@nativemethods.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I was wondering if anyone could provide feedback on whether the <br>
following: newsyslog.conf file is correct to allow for daily log <br>
rotation for my Bind 9.16.30 logs ?<br>
<br>
My currently logging settings in: named.conf are:<br>
<br>
...<br>
logging {<br>
channel chn_file_queries {<br>
buffered no;<br>
file "/var/queries.log"<br>
versions 2 size 1g suffix increment;<br>
print-category yes;<br>
print-severity yes;<br>
print-time yes;<br>
severity info;<br>
};<br>
...<br>
};<br>
...<br>
<br>
newsyslog.conf examples tend to make use of: pkill but I note in the <br>
Bind ARM and man page that signals are deprecated in favor of: rndc.<br>
<br>
I am *thinking* the following should work for newsyslog.conf<br>
<br>
/var/named/var/queries.log 640 7 * $D0 Z <br>
"/usr/sbin/rndc reconfig > /dev/null 2>/dev/null || true"<br>
<br>
So settings:<br>
<br>
Log path: My Bind is running in chroot<br>
File mode: 0640<br>
Log count: 7 (1 per day)<br>
Size limit: none<br>
Frequency: $D0 (daily)<br>
Flags: z to compress<br>
Binary: rndc (instead of pkill)<br>
<br>
Is this correct ?<br>
<br>
Thank you,<br>
<br>
- J<br>
-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>