42-9
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 42 Monitoring the Security Appliance
Configuring and Managing Logs
hostname(config)#
logging console
{
severity_level
|
message_list
}
Where the
severity_level
argument specifies the severity levels of messages to be sent to the console port.
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
message_list
argument specifies a customized message list that identifies the system log messages
to send to the console port. For information about creating custom message lists, see the
“Filtering
System Log Messages with Custom Message Lists” section on page 42-18
.
The following example specifies that the adaptive security appliance should send to the syslog server all
system log messages with a severity level of level 3 (errors) and higher. The adaptive security appliance
will send messages with the severity of 3, 2, and 1.
hostname(config)#
logging console errors
Sending System Log Messages to an E-mail Address
You can configure the adaptive security appliance to send some or all system log messages to an e-mail
address. When sent by e-mail, a system log message appears in the subject line of the e-mail message.
For this reason, we recommend configuring this option to notify administrators of system log messages
with high severity levels, such as critical, alert, and emergency.
Note
To start logging to an e-mail address you define in this procedure, be sure to enable logging for all output
locations. See the
“Enabling Logging to All Configured Output Destinations” section on page 42-6
. To
disable logging, see the
“Disabling Logging to All Configured Output Destinations” section on
page 42-6
.
To designate an e-mail address as an output destination, perform the following steps:
Step 1
To specify the system log messages to be sent to one or more e-mail addresses, enter the following
command:
hostname(config)#
logging mail
{
severity_level
|
message_list
}
Where the
severity_level
argument specifies the severity levels of messages to be sent to the e-mail
address. 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 security
appliance sends system log messages for level 3, 2, 1, and 0.
The
message_list
argument specifies a customized message list that identifies the system log messages
to send to the e-mail address. For information about creating custom message lists, see the
“Filtering
System Log Messages with Custom Message Lists” section on page 42-18
.
The following example uses a
message_list
with the name “high-priority,” previously set up with the
logging list
command:
hostname(config)#
logging mail high-priority
Step 2
To specify the source e-mail address to be used when sending system log messages to an e-mail address,
enter the following command:
hostname(config)#
logging from-address
email_address
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: ......