By default, event logging is enabled and has default settings. This section explains how to change settings to customize event logging to fit your needs.
- host1#baseline log 11:12:55 April 30 2002
- host1(config)#log severity warning
- host1(config)#log unlimit qos
- host1(config)#log verbosity low
- host1(config)#log destination syslog 10.10.9.5
include ospfGeneral
mplsGeneral
os
- host1(config)#log fields timestamp instance
no-calling-task
- host1#log here
The next sections explain how to configure individual and systemwide logs, how to format timestamps for log messages, and how to configure log filters.
baseline log
Hour:Minute[:Second]—Current time in 24-hour format. Seconds are optional.
Month Day Year—You must spell out the name of the month.
- host1#baseline log 11:12:55 April 30 2002
- host1#baseline log last-reset
log destination
![]() |
Note: You can display traffic logs—such as ipTraffic, icmpTraffic, tcpTraffic, and udpTraffic—only through the show log data command or from the SRP module console. You cannot redirect traffic logs elsewhere, such as to a system log or nonvolatile storage file, or to a Telnet session. |
- host1(config)#log destination syslog 10.10.9.5
include ospfGeneral
mplsGeneral
os
- host1(config)#no log destination syslog 10.10.9.5
- host1(config)#log destination syslog 10.10.9.5
include ospfGeneral mplsGeneral os
- host1(config)#no log destination syslog 10.10.9.5
include ospfGeneral os
- host1(config)#log destination syslog 10.1.2.3
exclude isisGeneral ipRoutePolicy ipTraffic
- host1(config)#no log destination syslog 10.1.2.3
exclude
- host1(config)#log destination syslog 10.1.2.3
exclude isisGeneral
ipRoutePolicy
ipTraffic
- host1(config)#no log destination syslog 10.1.2.3
exclude isisGeneral
- host1(config)#log destination syslog 10.1.2.3
exclude isisGeneral
- host1(config)#log destination syslog 10.1.2.3
exclude ospfGeneral
- host1(config)#log destination syslog 10.1.2.3
exclude isisGeneral
- host1(config)#log destination syslog 10.1.2.3
include ospfGeneral
log destination syslog source
- host1(config)#log destination syslog 10.1.2.3
source atm 0/1
log engineering
- host1(config)#log engineering
log fields
- host1(config)#log fields timestamp instance
no-calling-task
log here
- host1#log here
log severity
![]() |
Note: Assigning a log severity to an individual event category changes its state to Assigned. You cannot change the severity of that event category using systemwide level commands until you return the event category to its default, unassigned state with the no log severity command. |
- host1(config)#log severity warning
- host1(config)#no log severity *
log unlimit
- host1(config)#log unlimit qos
log verbosity
- host1(config)#log verbosity low