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.

Other related questions:
Where are log files saved
How are log files saved
If you have more questions, you can seek help from following ways:
To iKnow To Live Chat To Google
Scroll to top