NT logging to Event Viewer
Danny Mayer
mayer at ntp.isc.org
Tue Jan 24 18:17:07 UTC 2006
Josh Hyles wrote:
> Havent figured out how to stop the event viewer logs, but adding this
> to the conf file makes it log to a file..
>
See Chapter 6 ARM. "The null destination clause causes all messages sent
to the channel to be discarded; in that case, other options for the
channel are meaningless."
e.g.
logging {
category default { null;};
category unmatched { null;};
};
will drop the messages. I don't remember if ALL messages will be dropped
with this setting but I think that's all you need to worry about.
Danny
>
>
> # Setup query logging
> logging {
> channel query_logging {
> # Enable query logging by uncommenting the below
> # Make sure to change the path to a valid directory
> #
> # version: number of backups created if size exceeded
> # size : maximum size of log file
> #
> file "C:\dns\query.log" versions 3 size 100M;
>
> # Time stamp entries
> #
> print-time yes;
> };
> channel activity_log {
> severity info;
> print-time yes;
> print-category yes;
> print-severity yes;
> file "C:\dns\activity.log" versions 3 size 100M;
> };
> category queries { query_logging; };
> category default { activity_log; };
> category xfer-in { activity_log; };
> category xfer-out { activity_log; };
> category notify { activity_log; };
> category security { activity_log; };
>
> category update { activity_log; };
> category lame-servers { null; };
> };
>
> On 1/23/06, Josh Hyles <josh.maillists at gmail.com> wrote:
>> I am trying to figure out how to make my logs go into a text file
>> instead of having 1 line per event in Event viewer which takes up a
>> crap load of space and is really hard to read. Any help would be much
>> appriciated.
>>
>> Josh
>>
>
>
>
More information about the bind-users
mailing list