Use this command to configure the filter type of log messages. Use the no form of this command to
restore the default setting.
1. When too many log messages are printed, the terminal screen keeps being refreshed. If you are
not concerned with these log messages, use the “filter-only” filter type to filter the log messages,
2. If you are concerned with certain log messages, use the “contains-only” filter type to print log
messages containing the key word of the filter rule, so as to monitor whether certain events
happen.
In real operation, the contains-only and the fitler-only filter types cannot be configured at the
same time.
If you configure the filter direction and the filter type without configuring the filter rule, the log
messages are not filtered.
The following example sets the filter type to contains-only.
Ruijie(config)# logging filter type contains-only