files
Syntax
filesnumber;Hierarchy Level
[edit system syslogarchive], [edit system syslog filefilenamearchive]Description
Configure the maximum number of archived log files to retain. When the JUNOS logging utility has written a defined maximum amount of data to a log file
logfile, it closes the file, compresses it, and renames it tologfile.0.gz(for information about the maximum file size, seesize). The utility then opens and writes to a new file calledlogfile. When the new file reaches the maximum size, thelogfile.0.gzfile is renamed tologfile.1.gz, and the new file is closed, compressed, and renamedlogfile.0.gz.By default, the logging facility creates up to 10 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 filesUsage Guidelines
See Configuring System Log Messages.
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.See Also
size, JUNOS System Log Messages Reference