Related Documentation
- EX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- M Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- MX Series
- Specifying Log File Size, Number, and Archiving Properties
- PTX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- QFX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- T Series
- Specifying Log File Size, Number, and Archiving Properties
- size
files
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.1 for EX Series switches.
Description
Configure the maximum number of archived
log files to retain. When the Junos OS logging utility has written
a defined maximum amount of data to a log file logfile, it closes the file, compresses
it, and renames it to logfile.0.gz (for information about the maximum file size,
see size). The utility then opens and writes to a new file called logfile. When the new file
reaches the maximum size, the logfile.0.gz file is renamed to logfile.1.gz, and the new file is closed,
compressed, and renamed logfile.0.gz. By default, the logging facility creates
up to ten archive files in this manner. Once the maximum number of
archive files exists, each time the active log file reaches the maximum
size, the contents of the oldest archive file are lost (overwritten
by the next oldest file).
Options
number—Maximum number of archived files.
Range: 1 through 1000
Default: 10 files
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Related Documentation
- EX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- M Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- MX Series
- Specifying Log File Size, Number, and Archiving Properties
- PTX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- QFX Series
- Specifying Log File Size, Number, and Archiving Properties
- size
- T Series
- Specifying Log File Size, Number, and Archiving Properties
- size