SUMMARY STEPS
1.
configure
2.
logging archive
3.
device {disk0 | disk1 | harddisk}
4.
frequency {daily | weekly}
5.
severity severity
6.
archive-length weeks
7.
archive-size size
8.
file-size size
9.
commit
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Enters logging archive configuration mode.logging archive
Example:
RP/0/RSP0/CPU0:router(config)# logging
archive
Step 2
Specify the device to be used for logging syslogs.device {disk0 | disk1 | harddisk}
Step 3
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
device disk1
•
This step is required. If the device is not configured, then all
other logging archive configurations are rejected.
•
We recommend that syslogs be archived to the harddisk
because it has more capacity than flash disks.
•
By default, the logs are created under the directory
<device>/var/log
(Optional) Specifies if logs are collected on a daily or weekly basis.
Logs are collected daily by default.
frequency {daily | weekly}
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
frequency weekly
Step 4
(Optional) Specifies the minimum severity of log messages to
archive. All syslog messages greater than or equal to this configured
severity severity
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
severity warnings
Step 5
level are archived while those lesser than this are filtered out. The
severity levels are:
•
emergencies
•
alerts
•
critical
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
305
Implementing Logging Services
Archiving System Logging Messages to a Local Storage Device