Issue Description
FAQ - How to limit the amount of logging on switch?
Alarm Information
None
Handling Process
FAQ - How to limit the amount of logging on switch?
A: There are two ways to achieve it.
1. increase log level for logbuffer
Run:
info-center source { module-name | default } channel { channel-number | channel-name } log { state { off | on } | level severity } *
A rule for outputting logs to a channel is set.
By default, channel 4 is enabled to output logs and the lowest log severity is warning.
2.Configuring Log Filtering
info-center filter-id { id | bymodule-alias modname alias } * &<1-50>
or
info-center filter-id { id | bymodule-alias modname alias } { bytime interval | bynumber number }
The filtering function is configured for specified logs.
For example, how to limit the logs about port up/down.
1. [S29]info-center source IFPDT channel logbuffer log level error
//Port up/down log's level is 4 (warning). We chanege the IFPDT module log level to 5 (error). Warning logs will not generate in logbuffer
2. [S29]info-center filter-id bymodule-alias IFPDT IF_STATE
Info: Succeeded in setting the filter function of the log 0xff511000.
//Filter the IFPDT IF_STATE logs.
Root Cause
None
Suggestions
How to confirm the module and level of one log.
Please check the Format of Log Message