Configures a specified syslog server to log messages using the RFC-5424 format.
Syslog server configuration mode
Use this command to configure the router to generate log messages with the RFC-5424 format.
The RFC-5424 syslog message header consists of the following fields:
<prival><version><space>< time-stamp><space><host-name><space><app name><space><process id><space><Msg Id>
Where:
<190>1 2017-06-19T09:19:52.000003+00:00 SLX raslogd - -
Note
In the SLX-OS 17r.2.00 release, the process id and Msg Id fields are not filled and are replaced with - -.Use the no format RFC-5424 command to remove the RFC-5424 log message format from the syslog server configuration.
First, access the global configuration level of the CLI and configure the IP address for the syslog server. Then, enter the format RFC-5424 command to configure the router to use the RFC-5424 format as shown in the following example.
device# configure terminal device(config)# logging syslog-server 192.168.163.233 device(config-syslog-server-192.168.163.233)# format RFC-5424
To verify the syslog server log message format, enter the show running-config logging syslog-server command as shown in the following example.
device# running-config logging syslog-server logging syslog-server 192.168.163.233 format RFC-5424
To remove the RFC-5424 format from the configured syslog server, enter the no format RFC-5424 command as shown in the following example.
device(config)# logging syslog-server 192.168.163.233 device(config-syslog-server-192.168.163.233)# no format RFC-5424