< Home

session-log template

Function

The session-log template command creates a syslog or netflow session log template and accesses the session log template view.

The undo session-log template command deletes the syslog or netflow session log template.

Format

session-log template template-name type { syslog | netflow }

undo session-log template template-name

Parameters

Parameter Description Value
template template-name

Specifies the content template name of session logs in syslog format.

The value is a case-sensitive string of 1 to 32 characters and cannot contain question marks (?), (,) , (") or hyphens (-). 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 case-sensitive.

type syslog

Indicates a syslog template.

-

type netflow

Indicates a netflow session log template.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The content of syslog or netflow session logs can be customized in the template. You can run the session-log template command to create a session log template and enter the session log template view.

Example

# In the system view, create content template test for session logs in syslog format and access the template view.

<sysname> system-view
[sysname] session-log template test type syslog
[sysname-syslog-template-test]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >