display syslog flexible template

Function

The display syslog flexible template command displays the log format used in a configured flexible log template.

This command is supported only on the NetEngine 8000 F1A.

Format

display nat syslog flexible session [ create | free ] template

display nat64 syslog flexible session [ create | free ] template

Parameters

Parameter Description Value
session

Displays the log format of a flexible session log template.

-

create

Displays the online log format of a flexible log template.

-

free

Displays the offline log format of a flexible session log template.

-

nat64

Displays the NAT64 syslog format in a flexible log template.

-

nat

Displays the NAT syslog format in a flexible log template.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
nat read

Usage Guidelines

To view the log format of a flexible log template, run the display syslog flexible template command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the NAT64 session log format of a flexible log template.
<HUAWEI> display nat64 syslog flexible session template
<134> 2016 January 18 14 09 22 10.2.1.1 cnelog NAT64 17 2001:db8::1:1 10.14.13.13 1052 2000
# Display the NAT session log format of a flexible log template.
<HUAWEI> display nat syslog flexible session template
Create Log:                                                                                                                         
  <134> 1 timestamp_year-timestamp_month-timestamp_date timestamp_hour:timestamp_minute:timestamp_second host_ip app_name - scene:Se
ssionbasedW[protocol source_ip - destination_ip start_port end_port -]                                                              
                                                                                                                                    
  Example:                                                                                                                          
  <134> 1 2016-01-18 14:09:22 1.1.1.1 cnelog - NAT444:SessionbasedW[17 12.12.12.12 - 13.13.13.13 1024 2047 -]                       
                                                                                                                                    
Free Log:                                                                                                                        
  <134> 1 timestamp_year-timestamp_month-timestamp_date timestamp_hour:timestamp_minute:timestamp_second host_ip app_name - scene:Se
ssionbasedW[protocol source_ip - destination_ip start_port end_port starttime_second -]                                             
                                                                                                                                    
  Example:                                                                                                                          
  <134> 1 2016-01-18 14:09:22 1.1.1.1 cnelog - NAT444:SessionbasedW[17 12.12.12.12 - 13.13.13.13 1024 2047 22 -]
Table 1 Description of the display syslog flexible template command output
Item Description
cnelog

APP name.

Create Log

Create Log.

host_ip

Host IP.

app_name

Log server name.

source_ip

Source IP address.

destination_ip

Destination IP address.

start_port

Source port.

end_port

Destination port.

Free Log

Free Log.

timestamp_year

Year in the Timestamp.

timestamp_month

Month in the Timestamp.

timestamp_date

Date in the Timestamp.

timestamp_hour

Hour in the Timestamp.

timestamp_minute

Minute in the Timestamp.

timestamp_second

Second in the Timestamp.

scene

Scene.

protocol

Protocol information.

Example

Example.

NAT444

The device type is NAT444.

SessionbasedW

The message type is SessionbasedW.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >