Configuring Logging and Logging Correlation
In the following example, basic message logging is configured:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# logging 10.1.1.1
RP/0/RP0/CPU0:router(config)# logging trap debugging
RP/0/RP0/CPU0:router(config)# logging console emergencies
RP/0/RP0/CPU0:router(config)# logging buffered 1000000
RP/0/RP0/CPU0:router(config)# commit
RP/0/RP0/CPU0:router(config)# end
RP/0/RP0/CPU0:router# show logging
Syslog logging: enabled (162 messages dropped, 0 flushes, 0 overruns)
Log Buffer (1000000 bytes):
RP/0/RP0/CPU0:Apr
RP/0/RP0/CPU0:Apr
RP/0/RP0/CPU0:Apr
LC/0/1/CPU0:Apr
LC/0/6/CPU0:Apr
RP/0/RP0/CPU0:Apr
RP/0/RP1/CPU0:Apr
LC/0/1/CPU0:Apr
LC/0/6/CPU0:Apr
RP/0/RP0/CPU0:Apr
RP/0/RP1/CPU0:Apr
RP/0/RP0/CPU0:Apr
RP/0/RP0/CPU0:Apr
RP/0/RP0/CPU0:Apr
--More--
Related Documents
For more information on message logging and configuration of alarm correlation, see the following Cisco
documents:
Related Topic
Configuration of system logging
Commands used to configure logging
Configuration of alarm correlation and generating
complex queries
Commands used to configure alarm correlation
Retrieve logging events through an XML interface
Disabling Console Logging
To disable console logging, enter the logging console disable command in global configuration mode.
Cisco IOS XR Getting Started Guide
5-12
Console logging: level emergencies, 593 messages logged
Monitor logging: level debugging, 0 messages logged
Trap logging: level debugging, 2 messages logged
Logging to 10.1.1.1, 2 message lines logged
Buffer logging: level debugging, 722 messages logged
8 19:18:58.679 : instdir[203]: %INSTALL-INSTMGR-6-INSTALL_OP
8 19:19:01.287 : instdir[203]: %INSTALL-INSTMGR-6-INSTALL_OP
8 19:22:15.658 : instdir[203]: %INSTALL-INSTMGR-6-INSTALL_OP
8 19:22:30.122 : sysmgr[74]: %OS-SYSMGR-7-INSTALL_NOTIFICATION
8 19:22:30.160 : sysmgr[74]: %OS-SYSMGR-7-INSTALL_NOTIFICATION
8 19:22:30.745 : sysmgr[79]: %OS-SYSMGR-7-INSTALL_NOTIFICATI
8 19:22:32.596 : sysmgr[79]: %OS-SYSMGR-7-INSTALL_NOTIFICATI
8 19:22:35.181 : sysmgr[74]: %OS-SYSMGR-7-INSTALL_FINISHED : s
8 19:22:35.223 : sysmgr[74]: %OS-SYSMGR-7-INSTALL_FINISHED : s
8 19:22:36.122 : sysmgr[79]: %OS-SYSMGR-7-INSTALL_FINISHED :
8 19:22:37.790 : sysmgr[79]: %OS-SYSMGR-7-INSTALL_FINISHED :
8 19:22:41.015 : schema_server[332]: %MGBL-SCHEMA-6-VERSIONC
8 19:22:59.844 : instdir[203]: %INSTALL-INSTMGR-4-ACTIVE_SOF
8 19:22:59.851 : instdir[203]: %INSTALL-INSTMGR-6-INSTALL_OP
Document Title
Cisco IOS XR System Management Configuration Guide
Cisco IOS XR System Management Command Reference
Cisco IOS XR System Management Configuration Guide
Cisco IOS XR System Management Command Reference
Cisco IOS XR XML API Guide
Chapter 5
Configuring Additional Router Features
OL-10957-02
Need help?
Do you have a question about the Router Cisco IOS XR and is the answer not in the manual?
Questions and answers