![Cisco ASR 9000 Serie Скачать руководство пользователя страница 322](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679322.webp)
Purpose
Command or Action
•
errors
•
warnings
•
notifications
•
informational
•
debugging
See the
Syslog Message Severity Level Definitions, on page 294
section for information.
(Optional) Specifies 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.
archive-length weeks
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
archive-length 6
Step 6
By default, archive logs are stored for 4 weeks.
(Optional) Specifies the maximum total size of the syslog archives
on a storage device. If the size is exceeded then the oldest file in
the archive is deleted to make space for new logs.
archive-size size
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
archive-size 50
Step 7
The default archive size is 20 MB.
(Optional) Specifies the maximum file size (in megabytes) that a
single log file in the archive can grow to. Once this limit is reached,
a new file is automatically created with an increasing serial number.
file-size size
Example:
RP/0/RSP0/CPU0:router(config-logging-arch)#
file-size 10
Step 8
By default, the maximum file size is 1 megabyte.
commit
Step 9
Configuration Examples for Implementing Logging Services
This section provides these configuration examples:
Configuring Logging to the Console Terminal and the Logging Buffer: Example
This example shows a logging configuration where logging to the logging buffer is enabled, the severity level
of syslog messages sent to the console terminal is limited to syslog messages at or below the
critical
severity
level, and the size of the logging buffer is set to 60,000 bytes.
!
logging console critical
logging buffered 60000
!
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
306
Implementing Logging Services
Configuration Examples for Implementing Logging Services