system syslog file <filename> archive
Specifies the settings for log file archiving of a user-defined log file.
- filename
- Multi-node. A file to which the specified log messages are written. A file name can include numbers, letters, and hyphens (-). Full path specifications are not accepted.
You can send log messages to multiple files by creating multiple file configuration nodes.
- files
- The maximum number of archive files that are maintained for this log file. After the maximum number has been reached, logs are rotated with the oldest file being overwritten. The default maximum number is 10.
- size
- The maximum size in bytes of archive files for this log file. After the maximum has been reached, the file is closed and archived in compressed format. The default maximum size is 1 MB.
Configuration mode
system {
syslog {
file filename{
archive {
files files
size size
}
}
}
}
Use this command to specify settings for log file archiving of a user-defined log file.
Use the set form of this command to specify settings for log file archiving of a user-defined log file.
Use the delete form of this command to restore the default archiving configuration for a user-defined log file.
Use the show form of this command to display the configuration of the user-defined log file archiving.