294
Log files
By default, when the last log file is full, the device locates the oldest compressed log file
logfileX.log.gz
and creates a new file using the same name (
logfileX.log
).
After the minimum storage period is set, the system identifies the storage period of the compressed
log file before creating a new log file with the same name. The system current time minus the log
file's last modification time is the log file's storage period.
•
If the storage period of the compressed log file is shorter than or equal to the minimum storage
period, the system stops saving new logs.
•
If the storage period of the compressed log file is longer than the minimum storage period, the
system creates a new file to save new logs.
For more information about log saving, see "
Configuration procedure
To set the minimum storage period for log files and logs in the log buffer:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the log minimum
storage period.
info-center syslog min-age
min-age
By default, the log minimum
storage period is not set.
Enabling synchronous information output
System log output interrupts ongoing configuration operations, obscuring previously entered
commands. Synchronous information output shows the obscured commands. It also provides a
command prompt in command editing mode, or a [Y/N] string in interaction mode so you can
continue your operation from where you were stopped.
To enable synchronous information output:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable synchronous
information output.
info-center synchronous
By default, synchronous
information output is disabled.
Enabling duplicate log suppression
Output of consecutive duplicate logs (logs that have the same module name, level, mnemonic,
location, and text) wastes system and network resources.
With duplicate log suppression enabled, the system starts a suppression period upon outputting a
log:
•
If only duplicate logs are received during the suppression period, the information center does
not output the duplicate logs. When the suppression period expires, the information center
outputs the suppressed log and the number of times the log is suppressed.
•
If a different log is received during the suppression period, the information center performs the
following operations:
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...