
Setting Up Destinations for Syslog Messages: Example
This example shows a logging configuration where logging is configured to destinations other than the console
terminal. In this configuration, the following is configured:
•
Logging is enabled to destinations other than the console terminal.
•
Syslog messages at or below the
warnings
severity level are sent to syslog server hosts.
•
Syslog messages at or below the
critical
severity level are sent to terminal lines.
•
The size of the logging buffer is set to 60,000 bytes.
•
The syslog server host at IP addresses 172.19.72.224 (IPv4) and 2001:DB8:A00:1::1/64 (IPv6) are
configured as recipients for syslog messages.
!
logging trap warnings
logging monitor critical
logging buffered 60000
logging 172.19.72.224
logging 2001:DB8:A00:1::1/64
!
Configuring the Settings for the Logging History Table: Example
This example shows a logging configuration in which the size of the logging history table is to 200 entries
and the severity of level of syslog messages sent to the logging history table is limited to messages at or below
the
errors
severity level:
logging history size 200
logging history errors
Modifying Time Stamps: Example
This example shows a time-stamp configuration in which time stamps are configured to follow the format
month date HH:MM:SS time zone:
service timestamps log datetime show-timezone
This example shows a time-stamp configuration in which time stamps are configured to follow the format
month date HH:MM:SS.milliseconds time zone:
service timestamps log datetime msec show-timezone
Configuring a Logging Archive: Example
This example shows how to configure a logging archive, and define the archive attributes:
RP/0/RSP0/CPU0:router#
configure
RP/0/RSP0/CPU0:router(config)#
logging archive
RP/0/RSP0/CPU0:router(config-logging-arch)#
device disk1
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
307
Implementing Logging Services
Setting Up Destinations for Syslog Messages: Example