
SUMMARY STEPS
1.
configure
2.
logging buffered
[
size
|
severity
]
3.
logging console
[
severity
]
4.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Specifies the logging buffer as a destination for syslog messages, sets the size of
the logging buffer, and limits the syslog messages sent to the logging buffer based
on severity.
logging buffered
[
size
|
severity
]
Example:
RP/0/RSP0/CPU0:router(config)#
logging buffered size 60000
Step 2
•
The default for the
size
argument is 4096 bytes.
•
The default for the
severity
argument is
debugging
.
•
Keyword options for the
severity
argument are
emergencies
,
alerts
,
critical
,
errors
,
warnings
,
notifications
,
informational
, and
debugging
.
•
By default, entering this command without specifying a severity level for the
severity
argument or specifying the size of the buffer for the
size
argument
sets the severity level to
debugging
and the buffer size to 4096 bytes.
Limits messages sent to the console terminal based on severity.
logging console
[
severity
]
Step 3
Example:
RP/0/RSP0/CPU0:router(config)#
logging console alerts
•
Syslog messages are logged to the console terminal at the
informational
severity level by default.
•
Keyword options for the
severity
argument are
emergencies
,
alerts
,
critical
,
errors
,
warnings
,
notifications
,
informational
, and
debugging
.
•
Entering this command without specifying a severity level for the
severity
argument sets the severity level to
informational
.
Use this command to reenable logging to the console terminal if it was
disabled with the
logging console disable
command.
Note
commit
Step 4
Modifying the Format of Time Stamps
This task explains how to modify the time-stamp format for syslog and debugging messages.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
299
Implementing Logging Services
Modifying the Format of Time Stamps