Bind query logging stops after a logrotate.

John Ekins jre at globalnet.co.uk
Mon Sep 8 12:36:08 PDT 2003


Hello Charlie,

On Mon, 8 Sep 2003 12:04 , Charlie Schluting <charlie at schluting.com> sent:

>
>FBSD 5.1:
>Using Bind9.2.2, and I have query logging turned on:
>
>logging {
>   channel "querylog" { file "/var/log/query.lo~g"; print-time yes; };
>   category queries { querylog; };
>};
>
>After a logrotate, it stops logging completely. The permissions are
>correct, and all I have to do to make it start logging again is: "rndc
>reload".
>
>Anyone heard of this? Any ideas?

You could use the built in log rotation in Bind. Change your log line to, for example:

 file "/var/log/query.log" print-time yes; versions 5 size 10m;

>TIA,
>
>-Charlie

Cheers,
John.

---- Message sent via Global Webmail - http://www.global.net.uk/


More information about the freebsd-questions mailing list