< Home

display session-log template

Function

The display session-log template command displays the information about a session log template.

Format

display session-log template

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Session logs in the syslog format allow you to define the configuration template. You can use the display session-log template command to view the configuration of the user-defined template.

Example

# Display template test of a session log in the syslog format.

<sysname> display session-log template 
The number of template: 1
---------------------------------------------------------------------
Template name         : test

Template type         :syslog

Vsys name             : public

Separator             : semicolon

Expression            : ip-version protocol source-ip source-port source-nat-ip source-nat-port source-vpn-id begin-time end-time 

                        send-packets

Prefix characters     : protocol              : Protocol= 

                        source-ip             : SrcIP= 

                        destination-ip        : DstIP=  

                        begin-time            : none 

                        end-time              : none                  

Table 1 Description of the display session-log template command output

Item

Description

Template name

Session log template name

Template type

Session log template type

Vsys name

Virtual system name

Separator

Separator of the fields in the log

Expression

Ranking of the fields in the log

Prefix characters

Prefix of each field in the log

# Display the configuration of the netflow session log template test1.

<sysname> display session-log template
The number of template: 1
---------------------------------------------------------------------

Template name           : test1                                                                                                     
 Template type          : netflow                                                                                                   
 Vsys name              : public                                                                                                    
 Template exclude       : Yes                                                                                                       
 Content IPV4           : (ID257) ingress-vrf source-ip source-port source-nat-port source-nat-ip start-time end-time protocol      
 Content IPV6           : (ID258) ingress-vrf source-ip source-port source-nat-port source-nat-ip start-time end-time protocol source-nat-ip6
Table 2 Description of the display session-log template command output

Item

Description

Template name

Name of the log content template

Template type

Type of the log content template

Vsys name

Name of a virtual system

Template exclude

Whether the log content carries template data

Content IPV4

IPv4 session log content

Content IPV6

IPv6 session log content

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