The display session-log template command displays the information about a session log template.
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.
# 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
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
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 |