archive-length
To specify the length of time that logs are maintained in the logging archive, use the
archive-length
command
in logging archive configuration mode. To return to the default, use the
no
form of this command.
archive-length weeks
no archive-length
Syntax Description
Length of time (in weeks) that logs are maintained in the archive. Range is 0 to
4294967295.
weeks
Command Default
weeks
: 4 weeks
Command Modes
Logging archive configuration
Command History
Modification
Release
This command was introduced.
Release 3.2
Usage Guidelines
Use the
archive-length
command to specify the maximum number of weeks that the archive logs are maintained
in the archive. Any logs older than this number are automatically removed from the archive.
Task ID
Operations
Task ID
read, write
logging
Examples
This example shows how to set the log archival period to 6 weeks:
RP/0/0/CPU0:router(config)#
logging archive
RP/0/0/CPU0:router(config-logging-arch)#
archive-length 6
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01
301
Logging Services Commands
archive-length