42-10
Cisco Security Appliance Command Line Configuration Guide
OL-10088-01
Chapter 42 Monitoring the Security Appliance
Configuring and Managing Logs
hostname(config)# logging recipient-address e-mail_address [severity_level]
If a severity level is not specified, the default severity level is used (error condition, severity level 3).
For example:
hostname(config)# logging recipient-address admin@example.com
Step 4 To specify the SMTP server to be used when sending system log messages to an e-mail destination, enter
the following command:
hostname(config)# smtp-server ip_address
For example:
hostname(config)# smtp-server 10.1.1.1
Sending System Log Messages to ASDM
You can configure the security appliance to send system log messages to ASDM. The security appliance
sets aside a buffer area for system log messages waiting to be sent to ASDM and saves messages in the
buffer as they occur. The ASDM log buffer is a different buffer than the internal log buffer. For
information about the internal log buffer, see the “Sending System Log Messages to the Log Buffer”
section on page 42-12.
When the ASDM log buffer is full, the security appliance deletes the oldest system log message to make
room in the buffer for new system log messages. To control the number of system log messages retained
in the ASDM log buffer, you can change the size of the buffer.
This section includes the following topics:
• Configuring Logging for ASDM, page 42-10
• Clearing the ASDM Log Buffer, page 42-11
Configuring Logging for ASDM
Note To start logging to ASDM as defined 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 specify ASDM as an output destination, perform the following steps:
Step 1 To specify which system log messages should go to ASDM, enter the following command:
hostname(config)# logging asdm {severity_level | message_list}
Where the severity_level argument specifies the severity levels of messages to be sent to ASDM. You
can specify the severity level number (0 through 7) or name. For severity level names, see the “Severity
Levels” section on page 42-23. 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 argumentspecifies a customized message list that identifies the system log messages
to send to ASDM. For information about creating custom message lists, see the “Filtering System Log
Messages with Custom Message Lists” section on page 42-17.