Does the log buffer of S series switches record all logs

3

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.

Other related questions:
Are all logs recorded in the log buffer
Only some logs are recorded in the log buffer. Logs that can be recorded in the log buffer are restricted. -By default, only logs at levels lower than the warning logs (level 4) are recorded in the log buffer. Therefore, logs at levels 0 to 4 are recorded to the log buffer and logs at levels 5 and 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 set the levels of logs that can be recorded to the log buffer. -The log buffer space is limited. If the number of logs in the log buffer reaches the maximum value, new logs will replace the existing logs that are placed earlier in the log buffer until all the new logs are stored. By default, the log buffer can hold a maximum of 512 logs. You can run the info-center logbuffer size size command to set the maximum number to 1024.

The difference between the log buffer and trap buffer on S series switches
For S series switches (except the S1700): -The log buffer stores logs. When the device is running, the log module of the host software records operations and events on the device. The recorded operations and events are logs. -The trap buffer stores traps, which can be considered as alarms. If a device is faulty or the device environment does not meet operation requirements, the system cannot work normally and therefore generates alarms depending on the fault type. Each alarm has an ID.

How can I clear logs on a WLAN device
Logs generated on a WLAN device are saved in the log buffer. After the number of logs reaches the specified threshold, the logs are saved to the syslogfile or logfile folder in the device's flash memory. When the WLAN device has been running for a long time, it generates a large number of logs. In this case, you can run the info-center max-logfile-number command to set the maximum number of logs to be saved on the device. You can clear all logs in the buffer and the flash memory. 1. Clear logs in the log buffer or trap buffer. - Run the reset logbuffer command in the user view to clear logs in the log buffer. - Run the reset trapbuffer command in the user view to clear traps in the trap buffer. 2. Clear log files in the flash memory. Run the delete command in the user view to delete log files in the flash memory. To delete logs in the logfile folder, perform the following operations: - delete flash:/logfile/xxx //Delete a log record. xxx specifies the log file name saved in the flash memory. - delete /unreserved flash:/logfile/xxx //Permanently delete a log record, which cannot be restored. - reset recycle-bin //Empty the recycle bin.

How can command operation logs be displayed in the log buffer of an AR
By default, only warning logs are displayed in the log buffer. Command operation logs are at the notifications level, which is lower than warning. Therefore, command operation logs will not be displayed in the log buffer. To view command line operation logs in the log buffer, perform the following operations: 1. Run the system-view command to enter the system view. 2. Run the info-center source default channel logbuffer log level notifications command to allow logs of the notifications level to be displayed in the log buffer.

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