< Home

default traffic logging (security policy view)

Function

The default traffic logging enable command enables the logging of traffic that matches the default security policy.

The default traffic logging disable command disables the logging of traffic that matches the default security policy.

Format

default traffic logging enable

default traffic logging disable

undo default traffic logging

Parameters

None

Views

Security policy view

Default Level

2: Configuration level

Usage Guidelines

The default traffic logging setting in the default security policy is undo default traffic logging, meaning that traffic logging is controlled by the log type traffic enable command, which apply to all security policies, including the default security policy. When the log type traffic enable command is executed, traffic that matches any traffic (including the default) is logged.

A large number of traffic logs may be generated by the FW. When the log storage space is exhausted, the oldest logs will be overwritten. To prevent the log storage space from being quickly exhausted, the FW allows you to enable or disable traffic logging for the default security policy to control the logging scope in a refined manner.

Example

# Enable traffic logging for the default security policy.

<sysname> system-view
[sysname] security-policy
[sysname-policy-security] default traffic logging enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >