Administrator Guide

Switch Management Commands 2182
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 (logging protocol 0).
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.
Example
This example set the logging message format to RFC5424. DTLS is used for
X509 configured SYSLOG servers if a certificate is available.
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.