Enable System Logging
System logs are a valuable diagnostic tool. You can send log messages to flash files for later retrieval.
About this task
Configure logging to a flash file at all times as a best practice.
Procedure
Variable Definitions
The following table defines parameters for the boot config command.
Variable |
Value |
---|---|
flags logging |
Enables or disables logging to a flash file. The log file is named using the format log.xxxxxxxx.sss. The first six characters after the prefix of the file name log contain the last three bytes of the chassis base MAC address. The next two characters specify the slot number. The last three characters denote the sequence number of the log file. |
logfile <64-500> <500-16384> <10-90> |
Configures the following log file parameters:
Note:
The maximum number of log files is 1,000. The maximum size of one log file is 1,024 KB. You cannot configure the log file parameters on 5320 Series or 5420 Series. On these platforms, the number of log files is restricted to 145 and the size of a log file is restricted to 126 KB. |