format RFC-5424

Configures a specified syslog server to log messages using the RFC-5424 format.

Syntax

format RFC-5424
no format RFC-5424

Parameters

RFC-5424
Syslog message format defined in RFC-5424.

Modes

Syslog server configuration mode

Usage Guidelines

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:

For example:
<190>1 2017-06-19T09:19:52.000003+00:00 SLX raslogd - - 
Note

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.

Examples

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