HP-UX SNAplus2 Diagnostics Guide

Using Logging and Tracing
Controlling Logging Using Command-Line Administration Program
Chapter 3 69
categories of messages are recorded on servers that use the global
settings.
Use snapadmin query_log_type to check which categories of
messages are being recorded on a particular server.
For more information about these administration commands, refer to the
HP-UX SNAplus2 Administration Guide.
Controlling Log File Size
SNAplus2 enables you to prevent log files from becoming too large and
consuming disk resources. The snapadmin set_log_file
administration command lets you specify the maximum size of a log file
and the name of a backup file for each type of log information (audit or
error). When a log file reaches the specified size, SNAplus2 renames the
file to the name of the backup file (overwriting any existing backup log
file) and then clears the log file. This means that the maximum amount
of log information stored at any one time is twice the specified maximum
file size (or four times the maximum file size if you are logging audit and
error information to separate files).
You may need to increase the size of the log files to allow for the volume
of log information (if your system is large enough). In particular, consider
increasing the log file size to allow for the following:
Large numbers of clients or users (because a single communications
link failure can result in large numbers of logs on the server relating
to session failures).
Activation of audit logging as well as exception logging.
Use of central logging instead of local logging.
Use of verbose logging instead of succinct logging. For more
information, see “Verbose Logging Message Format”.
The snapadmin set_log_file administration command also enables
you to clear the current contents of the log file at any time (with or
without copying the information to the backup file).
For more information, refer to the HP-UX SNAplus2 Administration
Command Reference.