< Home

firewall log session url-log template

Function

The firewall log session url-log template command sets the log content format to template for URL session logs to be sent in the syslog format.

The undo firewall log session url-log template command restores the default setting.

Format

firewall log session url-log template template-name

undo firewall log session url-log template

Parameters

Parameter Description Value
template template-name

Specifies the name of the template for URL session logs in the syslog format.

The value is a case-sensitive string, without question marks (?) or hyphens (-). If the name does not contain any space, the length ranges from 1 to 32 characters. If the name contains spaces, the length ranges from 3 to 34 characters, and you must use double quotation marks ("") to enclose it.

The template name is set using the session-log template command.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The default log content format is default when the syslog format is employed to output session logs.

Example

# Set the log content format to template for URL session logs to be sent in the syslog format.

<sysname> system-view
[sysname] firewall log session url-log template template1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >