Configuring System Message Logging
Configuring the ACL Logging Cache
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
The following example show how to set the maximum number of log entries to 5000, the interval to 120
seconds, and the threshold to 500000:
switch# configure terminal
switch(config)# logging ip access-list cache entries 5000
switch(config)# logging ip access-list cache interval 120
switch(config)# logging ip access-list cache threshold 500000
switch(config)# copy running-config startup-config
Applying ACL Logging to an Interface
You can apply ACL logging only on the mgmt0 interface.
Before You Begin
• Create an IP access list with at least one access control entry (ACE) configured for logging.
• Configure the ACL logging cache.
• Configure the ACL log match level.
Command or Action
switch# configure terminal
switch(config)#logging ip access-list
cache entries num_entries
switch(config)# logging ip
access-list cache interval seconds
switch(config)# logging ip
access-list cache threshold
num_packets
switch(config)# copy
running-config startup-config
Cisco Nexus 5000 Series NX-OS System Management Configuration Guide, Release 5.2(1)N1(1)
Configuring the ACL Logging Cache
Purpose
Enters global configuration mode.
Sets the maximum number of log entries cached in
software. The range is from 0 to 1000000 entries. The
default value is 8000 entries.
Sets the number of seconds between log updates. Also if
an entry is inactive for this duration, it is removed from
the cache. The range is from 5 to 86400 seconds. The
default value is 300 seconds.
Sets the number of packet matches before an entry is
logged. The range is from 0 to 1000000 packets. The
default value is 0 packets, which means that logging is not
triggered by the number of packet matches.
(Optional)
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
101