To do...
1.
Enter system view.
2.
Enter interface view.
3.
Enable session logging.
Setting session logging thresholds
set thresholds to trigger recording and outputting of session logs. The thresholds include the following:
Holdtime threshold—When the holdtime of a session reaches the preset threshold, the system
•
outputs a session log.
Traffic threshold—When the number of packets or byte count of a session reaches the preset
•
threshold, the system outputs a session log.
To set session logging thresholds:
To do...
1.
Enter system view.
2.
Set the holdtime threshold
for session logging.
3.
Configure
the traffic
threshold
for
session
logging.
NOTE:
If you specify both the holdtime threshold and traffic threshold, the system performs session logging
•
according to the threshold that is first reached, and then it clears all statistics.
If you specify both the packet count threshold and byte count threshold, only the one specified last
•
takes effect.
Configuring session log export
Session logs are exported in the form of flow logs.
To configure session log exporting:
Command...
system-view
interface interface-type interface-number
session log enable [ acl acl-number ] {
inbound | outbound }
Command...
system-view
session log time-active time-value
Set the packet
count
session log packets-active packets-value
threshold.
Set the byte
count
session log bytes-active bytes-value
threshold.
366
Remarks
—
—
Required
Disabled by default
Remarks
—
Optional.
0 by default, which means that
the system does not output
session logs based on session
holdtime threshold.
Optional.
0 by default, which means that
the system does not output
session logs based on packet
count threshold.
Optional.
0 by default, which means that
the system does not output
session logs based on byte
count threshold.