Bind query logging stops after a logrotate.

2003-09-08 Thread Charlie Schluting

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?

TIA,

-Charlie
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bind query logging stops after a logrotate.

2003-09-08 Thread Garance A Drosihn
At 12:04 PM -0700 9/8/03, Charlie Schluting wrote:
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?
What do you mean by a logrotate?  Do you mean a run of the
newsyslog program?  Or are you using some other program?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bind query logging stops after a logrotate.

2003-09-08 Thread John Ekins
Hello Charlie,

On Mon, 8 Sep 2003 12:04 , Charlie Schluting [EMAIL PROTECTED] 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/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bind query logging stops after a logrotate.

2003-09-08 Thread Charlie Schluting

On Mon, 8 Sep 2003, John Ekins wrote:

 Hello Charlie,

 On Mon, 8 Sep 2003 12:04 , Charlie Schluting [EMAIL PROTECTED] sent:
 
 After a logrotate, it stops logging completely. The permissions are

Yes, I meant after a run of newsyslog.

 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;


THANKS! That will do nicely.

-Charlie
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


query logging

2003-01-15 Thread Mark
I must be misunderstanding something. In the man for ndc, I read:

querylog
   Causes named to toggle the ``query  logging''  fea-
   ture,  which while on will result in a syslog(3) of
   each incoming query (uses the WINCH signal.)   Note
   that query logging consumes quite a lot of log file
   space.  This directive may also be given as qrylog

Odd, I used this, then did a ndc status, and it says: query logging is
ON. Except that I do not see my queries appear in /var/log/messages. Where
are they supposed to go?

Thanks.

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: query logging

2003-01-15 Thread Mark
- Original Message - 
From: Ceri Davies [EMAIL PROTECTED]
To: Mark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 5:25 PM
Subject: Re: query logging


 On Wed, Jan 15, 2003 at 05:11:24PM +0100, Mark wrote:
  I must be misunderstanding something. In the man for ndc,
 I read:
  
  querylog
 Causes named to toggle the ``query  logging''  fea-
 ture,  which while on will result in a syslog(3) of
 each incoming query (uses the WINCH signal.)   Note
 that query logging consumes quite a lot of log file
 space.  This directive may also be given as qrylog
  
  Odd, I used this, then did a ndc status, and it says: query
  logging is ON. Except that I do not see my queries appear in
  /var/log/messages. Where are they supposed to go?
 
 They go to your queries channel.
 
 Ceri


Thanks! I got it working now. :)

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: query logging

2003-01-15 Thread Ceri Davies
On Wed, Jan 15, 2003 at 05:11:24PM +0100, Mark wrote:
 I must be misunderstanding something. In the man for ndc, I read:
 
 querylog
Causes named to toggle the ``query  logging''  fea-
ture,  which while on will result in a syslog(3) of
each incoming query (uses the WINCH signal.)   Note
that query logging consumes quite a lot of log file
space.  This directive may also be given as qrylog
 
 Odd, I used this, then did a ndc status, and it says: query logging is
 ON. Except that I do not see my queries appear in /var/log/messages. Where
 are they supposed to go?

They go to your queries channel.

Ceri
-- 
For the All-Father, the stone, and the heroic!

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message