61-2
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 61 Configuring System Message Logging
Configuring System Message Logging
You can access logged system messages by using the switch command-line interface (CLI) or by saving
them to a properly configured syslog server. The switch software saves syslog messages in an internal
buffer on the switch. If the switch fails, the log is lost unless you had saved it to flash memory.
You can remotely monitor system messages by viewing the logs on a syslog server or by accessing the
switch through Telnet or using the console port.
Configuring System Message Logging
These sections describe how to configure system message logging:
• System Log Message Format, page 61-2
• Default System Message Logging Configuration, page 61-3
• Disabling Message Logging, page 61-4
• Setting the Message Display Destination Device, page 61-5
• Synchronizing Log Messages, page 61-6
• Enabling and Disabling Timestamps on Log Messages, page 61-7
• Enabling and Disabling Sequence Numbers in Log Messages (Optional), page 61-7
• Defining the Message Severity Level (Optional), page 61-8
• Limiting Syslog Messages Sent to the History Table and to SNMP (Optional), page 61-9
• Configuring UNIX Syslog Servers, page 61-10
System Log Message Format
System log messages can contain up to 80 characters and a percent sign (%), which follows the optional
sequence number or time-stamp information, if configured. Messages are displayed in this format:
seq no:timestamp: %facility-severity-MNEMONIC:description
The part of the message preceding the percent sign depends on the setting of the
service sequence-numbers, service timestamps log datetime,
service timestamps log datetime [localtime] [msec] [show-timezone] command or the
service timestamps log uptime global configuration command.
Table 61-1 describes the elements of syslog messages.