This task describes how to add querylogging channels.
You must enable querylogging prior to adding a querylogging
channel.
When you create a querylogging channel, you must specify the mandatory
parameters:
- a channel name
- a name for the channel log file
- the maximum number of versions of the file to create
- a file size (in MB)
- a severity level
- a message category
You must also specify whether the logging system should mark each entry with its
time, severity level, and category.
To add a querylogging channel:
-
Log in to the DNS/DHCP Server Administration Console as the
administrator. For more information on default login credential, refer to BlueCat default login credentials (you must be
authenticated to view this topic).
-
From Main Session mode, type configure
querylogging and press ENTER.
-
Type add channel <channelname> and press
ENTER.
The prompt changes to indicate you are now within the newly created
channel.
-
Type add <category> and press
ENTER. For complete list of available channel
categories, refer to Available channel categories for querylogging. To add
multiple categories to the log file, repeat this step.
-
Type set file <filename>.txt and press
ENTER.
-
Type set version <1/2/3> and press
ENTER. This is the number of input versions (1, 2
or 3) for the log file.
-
Type set size <numerical-value> and press
ENTER. This is the maximum size for the log file
in MB.
-
Type set severity
<critical/error/warning/notice/info/debug/dynamic> and
press ENTER. You can only set one severity level per
log file.
-
Type set printtime <yes/no> and press
ENTER. This applies a timestamp to each event
saved to the log file.
-
Type set printseverity <yes/no> and press
ENTER. This applies the selected severity value
to the event in the log file.
-
Type set printcategory <yes/no> and press
ENTER. This applies the selected category to the
event in the log file.
-
Type save and press ENTER.
The Administration Console saves your settings.
Adonis> configure querylogging
Adonis:configure:querylogging> add channel view1
Adonis:configure:querylogging:view1>add category database
Adonis:configure:querylogging:view1>add category config
Adonis:configure:querylogging:view1>set file db_log.txt
Adonis:configure:querylogging:view1>set version 2
Adonis:configure:querylogging:view1>set size 2
Adonis:configure:querylogging:view1>set severity critical
Adonis:configure:querylogging:view1>set printtime yes
Adonis:configure:querylogging:view1>set printseverity yes
Adonis:configure:querylogging:view1>set printcategory yes
Adonis:configure:querylogging:view1>save
Save channel details for view1