![Cisco ASR 9000 Serie Скачать руководство пользователя страница 308](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679308.webp)
Description
Command
Specifies the local storage device where syslogs are
archived. By default, the logs are created under the
directory <device>/var/log. 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.
device
{
disk0
|
disk1
|
harddisk
}
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
Specifies if logs are collected on a daily or weekly
basis.
frequency
{
dailyweekly
}
Specifies the minimum severity of log messages to
archive. All syslog messages greater than or equal to
this configured level are archived while those lesser
than this are filtered out. See the
page 292
for more information.
severity severity
Archive Storage Directories
By default, syslog archives are stored in the directory <device>/var/log. Individual archive files are saved to
sub directories based on the year, month, and day the archive was created. For example, archive files created
on February 26, 2006 are stored in this directory:
harddisk:/var/log/2006/02/26
Severity Levels
You can limit the number of messages sent to a logging destination by specifying the severity level of syslog
messages sent to a destination (see
Table 32: Syslog Message Severity Levels, on page 294
for severity level
definitions).
This table lists the commands used to control the severity level of syslog messages.
Table 30: Commands Used to Control the Severity Level of Syslog Messages
Description
Command
Limits the syslog messages sent to the logging buffer
based on severity.
logging buffered
[
severity
]
Limits the syslog messages sent to the console
terminal based on severity.
logging console
[
severity
]
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
292
Implementing Logging Services
Severity Levels