483
session log bytes-active
Use session log bytes-active to set the byte-based threshold for traffic-based logging.
Use undo session log bytes-active to restore the default.
Syntax
session log bytes-active bytes-value
undo session log bytes-active
Default
The device does not output session logs based on the byte-based threshold.
Views
System view
Predefined user roles
network-admin
Parameters
bytes-value: Sets the byte-based threshold in the range of 1 to 1000 MB.
Usage guidelines
If you set both the traffic-based and time-based logging, the device outputs a session log when whichever
is reached. After outputting a session log, the device resets the traffic counter and restarts the interval for
the session.
If you set both the byte-based and packet-based thresholds, the last configuration takes effect.
Examples
# Configure the device to output session logs on a per-10-MB basis.
<Sysname> system-view
[Sysname] session log bytes-active 10
Related commands
• session log enable
• session log time-active
session log enable
Use session log enable to enable session logging.
Use undo session log enable to disable session logging.
Syntax
session log enable { ipv4 | ipv6 } [ acl acl-number ] { inbound | outbound }
undo session log enable { ipv4 | ipv6 } [ acl acl-number ] { inbound | outbound }
Default
Session logging is disabled.