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.
| 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. |
- |
The actual command output varies according to the device. The command output here is only an example.
<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
<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 -]
| 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. |