Logs cannot be queried in log files of S series switches

2

A large number of consecutive repeated logs may affect the performance of the information center and prevent it from recording other logs. To avoid this situation, S series switches (except the S1700) suppress consecutive repeated logs. Suppressed logs are not recorded; so they cannot be queried in log files. Suppression is performed in the following two conditions:
Four thousand consecutive logs with the same log ID (regardless of the log contents) are generated.
Logs with the same log ID (regardless of the log contents) are generated continuously in an hour.

Other related questions:
Methods of outputting logs to log files on S series switches
The S series switches (except the S1700) support the storage of logs and alarms in the log files. You can run the dir command in the user view to view the log files, which are named syslogfile or logfile. Perform the following steps to obtain logs and alarms from log files: 1. Run the save logfile command to save information in the log buffer to syslogfile or logfile. Remarks: The device automatically saves logs at regular intervals. The syslogfile file is saved automatically every time the device restarts. The logfile file is automatically saved at regular intervals. 2. After running the save logfile command, you can transfer log files to the terminal (PC) through FTP or TFTP.

Where are log files of a switch saved and how to view log files
A switch can save logs and alarms in log files. The log file saving method varies depending on product models and versions. All fixed switches running V200R002C00 or V200R003C00, and S5700SI, S5700EI, S5700HI, and S6700 running V200R005C00 or a later version: User logs are created after the switch restarts or the save logfile command is executed. These logs are saved in the syslogfile folder in standard zip format. The file name of a log file starts with syslogfile, followed by the time when the file is created, for example, syslogfile-2013-06-26-09-59-10.zip. Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip. S1720, S2720, S2750, S5700LI, S5700S-LI, S5710-X-LI, S5720SI, S5720S-SI, S5710EI, S5720EI, S5710HI, S5720HI, and S6720EI running V200R005C00 or a later version: The system periodically saves information in the log buffer to a user log file (log.log) and a diagnostic log file (log.dblg), which are saved in the logfile folder. When the two log files exceed the specified size, the system compresses them into zip packages and names the compressed files date time.log.zip and date time.dblg.zip, for example, 2013-08-14.04-55-23.log.zip and 2013-09-05.05-15-23.dblg.zip. Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip. Perform the following steps to obtain logs and alarms from log files: Run the save logfile command to save information in the log buffer to a log file. Upload all files in flash:/syslogfile/ (or flash:/logfile/ in V200R005C00 and later versions) and flash:/resetinfo/ to your computer through FTP or TFTP. NOTE: If a fault occurs in a stack, for example, the stack splits or restarts unexpectedly, collect log files on all the member switches.

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