CLI Reference Guide

Syslog Commands 1661
logging protocol
Use this command to log messages in RFC5424 format, including time zone
and subsecond resolution time stamps. Use the no form of this command to
set the logging to the default format.
Syntax
logging protocol {
protocol-selector
}
no logging protocol
protocol-selector
—One of the following:
0 – Generate RFC3164 format messages
1 – Generate RFC5424 format messages
Default Configuration
Messages are logged in RFC3164 format by default.
Command Modes
Global Configuration mode.
User Guidelines
During system startup, messages are logged in RFC3164 format (e.g., in the
startup persistent log). Messages are logged in the selected format upon the
system processing the startup configuration.
The time zone must be configured for the system to generate RFC5424 log
messages with the time zone included.
The system does not support transmission of syslog messages using TLS.
Example
This example set the logging message format to RFC5424.
console(config)#logging protocol 1
This example sets the logging message format to RFC3164
console(config)#no logging protocol
The following example shows the logging format when logging protocol is set
to 0.
2CSNXXX_SWUM200.book Page 1661 Tuesday, December 10, 2013 1:22 PM