How many logs can the logbuffer of a CE series switch be recorded

0

By default, the log buffer can save 512 logs. The number of logs is configurable and the maximum value is 10240.
For example, run the following command to set the maximum number of logs saved in the log buffer to 1000:
<HUAWEI> system-view
[~HUAWEI] info-center logbuffer size 1000
[*HUAWEI] commit

Other related questions:
What logs are recorded by CE series switches
The device records the following logs during running: - User logs: recording user operations and information such as port and protocol status, which are saved in the log.log file. - Diagnostic logs: recording key process or event information, which are usually used for fault location. Diagnostic logs are saved in the diag.log file.

Why are executed commands recorded in log files but cannot be displayed by the display logbuffer command
Information in the log buffer differs from information in log files because they use different channels of the information center. Log files record more information than the log buffer. The log buffer has a higher information level and records more important than log files. As logs have a lower information level, they are not saved in the log buffer. You can use the following command to set a lower level for the logs sent to the log buffer: [HUAWEI] info-center source SHELL channel logbuffer log level informationalRun some commands and use the display logbuffer command to check the logs in the log buffer. These commands will be displayed.

Does the log buffer of S series switches record all logs
The log buffer only records some logs. For S series switches (except the S1700), two factors determine the logs recorded by log buffer. - By default, the log buffer only records logs at levels lower than the warning level (level 4); therefore, logs at levels 0 to 4 are recorded in the log buffer, whereas logs at levels 5 to 7 are not recorded. You can run the info-center source { module-name | default } channel { channel-number | channel-name } log { state { off | on } | level severity } * command to configure the levels of logs that can be recorded in the log buffer. - The space of the log buffer is limited. If the number of logs in the log buffer reaches the maximum, new logs will replace the earliest logs in the log buffer. By default, the log buffer can hold a maximum of 512 logs. You can run the info-center logbuffer size size command to configure the maximum number as 1024.

The maximum number of log hosts that can receive logs sent by S series switches
The S series switches (except the S1700) can be configured to send logs to a maximum of eight log hosts (IPv4 and IPv6 log hosts), thus achieving mutual backup among the log hosts.

How to filter logs on CE series switches
Run the info-center filter-id { id | bymodule-alias modname alias } command in the system view to filter out the specified log information.
To filter out the log "ent_config_change", run the following commands:
<HUAWEI> system-view
[~HUAWEI] info-center filter-id bymodule-alias devm ent_config_change

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top