PurposeCommand or Action
Limits messages logged to the console.logging console level
Step 2
Example:
By default, the console receives debugging
messages and numerically lower levels.
Device(config)# logging console 3
Limits messages logged to the terminal lines.logging monitor level
Step 3
Example:
By default, the terminal receives debugging
messages and numerically lower levels.
Device(config)# logging monitor 3
Limits messages logged to the syslog servers.logging trap level
Step 4
Example:
By default, syslog servers receive informational
messages and numerically lower levels.
Device(config)# logging trap 3
Returns to privileged EXEC mode.end
Example:
Step 5
Device(config)# end
Limiting Syslog Messages Sent to the History Table and to SNMP
This task explains how to limit syslog messages that are sent to the history table and to SNMP.
This task is optional.
Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Step 1
Device# configure terminal
Changes the default level of syslog messages
stored in the history file and sent to the SNMP
server.
logging history level
Example:
Device(config)# logging history 3
Step 2
By default, warnings, errors, critical, alerts,
and emergencies messages are sent.
Specifies the number of syslog messages that
can be stored in the history table.
logging history size number
Example:
Step 3
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
267
Configuring System Message Logs
Limiting Syslog Messages Sent to the History Table and to SNMP