Configuring System Logging Counts


This document describes the System Logging (error logging) count enhancement feature in Cisco IOS Release 12.2(8)T. It includes the following sections:

Feature Overview

Finding Feature Information

Supported Standards, MIBs, and RFCs

Configuration Tasks

Configuration Examples

Feature Information for Event Tracer

Feature Overview

The Cisco IOS logging facility allows you to save error messages locally or to a remote host. When these error messages exceed the capacity of the local buffer dedicated to storing them, the oldest messages are removed. To provide you with more information about messages that have occurred and may have been removed from the local buffer, an error log counter tabulates the occurrences of each error message, and time-stamps the most recent occurrence.

These messages are further sorted by message facility. Messages from each message facility are grouped together and totaled in the count. If a message is rate-limited, the count is incremented based on the actual messages that have occurred.

The service timestamps command configuration determines the format of the "Last Time" column in the show logging command output. Use the service timestamps command to configure the time-stamp format in the "Last Time" column.

Benefits

Provides detailed information regarding system messages, including the most recent time the message occurred.

Alerts you to a potential problem with the system if you see the same error message occurring repeatedly.

Related Features and Technologies

Cisco IOS Logging

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the "Feature Information for Event Tracer" section.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.

Supported Standards, MIBs, and RFCs

Standards

No new or modified standards are supported by this feature.

MIBs

No new MIBs are supported by this feature

To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml

RFCs

No new or modified RFCs are supported by this feature.

Configuration Tasks

See the following sections for configuration tasks for this feature. Each task in the list is identified as either required or optional.

Enabling the Error Log Count Capability (required)

Enabling the Error Log Count Capability

To enable the error log count capability, use the following command in global configuration mode:

Command
Purpose

Router(config)# logging count

Enables the error log count capability.

Verifying the Error Log Count Capability

Enter the show logging count command to view information about syslog error messages.

Router# show logging count

Facility       Message Name                     Sev Occur   Last Time
=============================================================================
SYS            BOOTTIME                           6    1 00:00:12
SYS            RESTART                            5    1 00:00:11
SYS            CONFIG_I                           5    3 1d00h
-------------  -------------------------------  -----------------------------
SYS TOTAL                                              5

LINEPROTO      UPDOWN                             5   13 00:00:19
-------------  -------------------------------  -----------------------------
LINEPROTO TOTAL                                       13

LINK           UPDOWN                             3    1 00:00:18
LINK           CHANGED                            5   12 00:00:09
-------------  -------------------------------  -----------------------------
LINK TOTAL                                            13

SNMP           COLDSTART                          5    1 00:00:11
-------------  -------------------------------  -----------------------------
SNMP TOTAL                                             1

Configuration Examples

This section provides the following configuration example:

Enabling the Error Log Count Capability: Example

Enabling the Error Log Count Capability: Example

In the following example, the error log count capability is enabled:

Router# logging count

Building configuration...
Current configuration : 2507 bytes
!
! Last configuration change at 14:53:38 UTC Tue Feb 5 2002
!
.
.
.
hostname router
!
logging count
logging buffered notifications

Feature Information for Event Tracer

Table 1 Feature Information for Event Tracer

Feature Name
Releases
Feature Information

Event Tracer

12.2(8)T

The Cisco IOS logging facility allows you to save error messages locally or to a remote host.

The following commands were introduced or modified: logging count, show logging.