log rotation

Clenna Lumina savagebeaste at yahoo.com
Tue Jun 26 21:47:42 UTC 2007


Christophe Brocas wrote:
> Le 04/05/2007 15:30, Daniel Dawalibi a icrit :
>> Hi
>>
>>
>> I have installed Bind -9.3.2-P2.
>>
>>
>>
>> Also I modified in named.conf in order to define 20 MB as maximum
>> size for log file.
>>
>>
>>
>> logging {
>>
>>         channel "transfer" {
>>
>>                 file "/usr/local/named/log/secu.log" 20m;
>>
>>                 print-time yes;
>>
>>                 print-category yes;
>>
>>
>>
>>
>>
>> But I observed that there is no rotation occurs when the size of the
>> file "secu.log" exceed the 20 MB;
>>
> Hello Daniel,
>
> I think the problem comes from you have specified a max size parameter
> without a versions parameter. So when the size limit is reached BIND
> stops logging until the file size is reduced to below the threshold.
>
> If you write something like :
>
> file "/usr/local/named/log/secu.log" versions 10 size 20m;
>
> The rotation will happen.
>
> The explanation of versions parameter is here :
> http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#id2553269

Out of curiosity is it better to use bind's rotation mechanism over 
logrotate if you have that on your system, or does it not really matter?

-- 
CL 




More information about the bind-users mailing list