Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2003 20:36:06 +0100
From:      John Ekins <jre@globalnet.co.uk>
To:        freebsd-questions <freebsd-questions@freebsd.org>, Charlie Schluting <charlie@schluting.com>
Subject:   Re: Bind query logging stops after a logrotate.
Message-ID:  <E19wRny-0001UF-00@webm1.global.net.uk>

next in thread | raw e-mail | index | archive | help
Hello Charlie,

On Mon, 8 Sep 2003 12:04 , Charlie Schluting <charlie@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19wRny-0001UF-00>