Log fields for long-live sessions
Logging of long-live session statistics can be enabled or disabled in traffic logs.
config log setting set long-live-session-stat {enable | disable} end
When enabled, traffic logs include the following fields of statistics for long-live sessions:
Duration delta ( |
Displays the time in seconds between the last session log and the current session log. |
Sent packet delta ( |
Displays the number of sent packets. When the number of packets reported in the |
Received packet delta ( |
Displays the number of received packets. When the number of packets reported in the |
The long-live session fields enhance the granularity and accuracy of traffic longs to aid troubleshooting and analysis.
Example
In this example, logging is enabled for long-live session statistics. Log ID 20 includes the new fields for long-live sessions.
To log long-live session statistics:
-
Enable logging of long-live session statistics:
config log setting set long-live-session-stat enable end
-
View information in the logs:
In the following example, log fields are filtered for log ID 0000000020 to displays the new fields of data.
The
sentpkt
field displays205
bytes, and thercvdpkt
field displays1130
bytes. The new fields (sentpktdelta=205
andrcvdpktdelta=1130
) display the same number of packets, which shows no logs have been lost. Thedurationdelta
shows120
seconds between the last session log and the current session log.# execute log filter device Disk # execute log filter category 0 # execute log filter field subtype forward # execute log filter field logid 0000000020 # execute log display 1 logs found. 1 logs returned. 1: date=2023-12-07 time=14:19:59 eventtime=1701987599439429340 tz="-0800" logid="0000000020" type="traffic" subtype="forward" level="notice" vd="vdom1" srcip=10.1.100.22 srcport=53540 srcintf="wan2" srcintfrole="undefined" dstip=172.16.200.55 dstport=80 dstintf="wan1" dstintfrole="undefined" srccountry="Reserved" dstcountry="Reserved" sessionid=296 proto=6 action="accept" policyid=1 policytype="policy" poluuid="e538d622-53eb-51ee-8adc-f8fbb0f22fdd" policyname="B-out" service="HTTP" trandisp="snat" transip=172.16.200.2 transport=53540 duration=120 sentbyte=10855 rcvdbyte=1397640 sentpkt=205 rcvdpkt=1130 appcat="unscanned" sentdelta=10855 rcvddelta=1397640 durationdelta=120 sentpktdelta=205 rcvdpktdelta=1130