The session logging command enables the function of logging the session that matches the security policy rule.
The undo session logging command disables the function of logging of the session that matches the security policy rule.
session logging
undo session logging
Security policy rule view
2: Configuration level
# Log the session that matches security policy rule policy_sec.
<sysname> system-view [sysname] security-policy [sysname-policy-security] rule name policy_sec [sysname-policy-security-rule-policy_sec] session logging