User Guide

Table Of Contents
Monitoring and Logging System Information 425
Logging Configuration Examples
This section contains the following examples:
Configuring Local and Remote Logging
Configuring Email Alerting
Configuring Local and Remote Logging
This example shows how to enable switch auditing and CLI command
logging. Log messages with a severity level of Notification (level 5) and above
are sent to the RAM (buffered) log. Emergency, Critical, and Alert (level 2)
log messages are written to the log file on the flash drive. All log messages are
displayed on the console and sent to a remote SYSLOG server.
By default, logging uses protocol version 0 (RFC 3164). Administrators may
wish to configure protocol version 1 format (RFC 5424) messages.
By default, the log messages appear in reverse order, i.e. the newest message is
shown first.
To configure the switch:
1
Enable switch auditing and CLI command logging.
console#configure
console(config)#logging audit
console(config)#logging cli-command
2
Specify where the logs are sent locally and what severity level of message is
to be logged. The severity can be specified as the level number, as shown in
the first two commands, or as the keyword, as shown in the third
command.
console(config)#logging buffered 5
console(config)#logging file 2
console(config)#logging console debugging
3
Define the remote log server.
console(config)#logging 192.168.2.10
console(Config-logging)#description "Syslog Server"
console(Config-logging)#level debug
console(Config-logging)#exit
console(config)#exit