Building network automation solutions

9 module online course

Start now!

Count the logging messages

I haven't figured out why I would need this particular IOS feature (IOS documentation says you can at least get a glimpse of what was happening before the logging buffer wrapped over), but it's such a cool one I simply have to mention it ... starting with release 12.2(8)T and 12.3, IOS can tabulate the occurence of each log message. You configure this feature with the logging count global configuration command and inspect its results with the show logging count command:
a1#show logg count
Facility Message Name Sev Occur Last Time
SYS CONFIG_I 5 4 *Jan 16 11:32:57.130
------------- -------------- ------------------------------

OSPF ADJCHG 5 2 *Jan 16 11:31:26.434
------------- -------------- ------------------------------

We migrated our blog a few days ago, and the commenting functionality is not there yet. In the meantime please find our content on LinkedIn and comment there.