42-18
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 42 Monitoring the Security Appliance
Configuring and Managing Logs
Filtering System Log Messages with Custom Message Lists
Creating a custom message list is a flexible way to exercise fine control over which system log messages
are sent to which output destination. In a custom system log message list, you specify groups of system
log messages using any or all of the following criteria: severity level, message IDs, ranges of system log
message IDs, or by message class.
For example, message lists can be used to do the following:
•
Select system log messages with severity levels of 1 and 2 and send them to one or more e-mail
addresses.
•
Select all system log messages associated with a message class (such as “ha”) and save them to the
internal buffer.
A message list can include multiple criteria for selecting messages. However, you must add each
message selection criteria with a new command entry. It is possible to create a message list containing
overlapping message selection criteria. If two criteria in a message list select the same message, the
message is logged only once.
To create a customized list that the adaptive security appliance can use to select messages to be saved in
the log buffer, perform the following steps:
Step 1
Create a message list containing criteria for selecting messages by entering the following command:
hostname(config)#
logging list
name
{
level
level
[
class
message_class
] |
message
start_id
[
-
end_id
]}
Where the
name
argument specifies the name of the list. Do not use the names of severity levels as the
name of a system log message list. Prohibited names include “emergencies,” “alert,” “critical,” “error,”
“warning,” “notification,” “informational,” and “debugging.” Similarly, do not use the first three
characters of these words at the beginning of a file name. For example, do not use a filename that starts
with the characters “err.”
The
level
level
argument specifies the severity level. You can specify the severity level number (0
through 7) or name. For severity level names, see the
“Severity Levels” section on page 42-24
. For
example, if you set the level to 3, then the adaptive security appliance sends system log messages for
level 3, 2, 1, and 0.
The
class
message_class
argument specifies a particular message class. See
Table 42-2 on page 42-17
for a list of class names.
The
message
start_id
[
-
end_id
]
argument specifies an individual system log message ID number or a
range of numbers.
The following example creates a message list named notif-list that specifies messages with a severity
level of 3 or higher should be saved in the log buffer:
hostname(config)#
logging list notif-list level 3
Step 2
(Optional) If you want to add more criteria for message selection to the list, enter the same command as
in the previous step, specifying the name of the existing message list and the additional criterion. Enter
a new command for each criterion you want to add to the list.
The following example adds criteria to the message list—a range of message ID numbers and the
message class ha (high availability or failover):
hostname(config)#
logging list notif-list 104024-105999
hostname(config)#
logging list notif-list level critical
hostname(config)#
logging list notif-list level warning class ha
Summary of Contents for 500 Series
Page 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Page 45: ...P A R T 1 Getting Started and General Information ...
Page 46: ......
Page 277: ...P A R T 2 Configuring the Firewall ...
Page 278: ......
Page 561: ...P A R T 3 Configuring VPN ...
Page 562: ......
Page 891: ...P A R T 4 System Administration ...
Page 892: ......
Page 975: ...P A R T 5 Reference ...
Page 976: ......