1. Latest News
  2. Submit Press Release
  1. PR Home
  2. Latest News
  3. Feeds
  4. Alerts
  5. Submit Free Press Release
  6. Journalist Account
  7. PRNewswire Distribution

How to Configure logging in Cisco IOS

Logging can use for fault notification, network forensics, and security auditing. Cisco routers log messages can handle in five different ways: SNMP trap logging, Console logging, Terminal logging, Buffered logging, Syslog Server logging.


PRLog (Press Release) - Dec. 12, 2013 - Configuration Overview:

1. Console logging:

The Cisco router does not check if a user is logged into the console port or a device is attached to it; if console logging is enabled, messages are always sent to the console port that can cause CPU load.
To stop the console logging, use the “no logging console” global configuration command .you might want to limit the amount of messages sent to the console with the “logging console level” configuration command (for example, logging console Informational).

2. Buffered logging:

You want your router to record log messages, instead of just displaying them on the console.To use logging buffered configuration command to enable the local storage of router log messages:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#logging buffered informational

You can also Set the Log Size on router.
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#logging buffered 64000

3. Terminal logging

You want the router to display log messages to your VTY session in real time.Use the terminal monitor command to enable the displaying of log messages to your VTY:
Router#terminal monitor
To disable logging to your VTY session, use the following command:
Router#terminal no monitor

4. Syslog Server logging:

You want to send log messages to a remote syslog server. By using this we can send messages to an external device for storing this logs and the storage size does depend on the available disk space of the external syslog server. This option is not enabled by default.
If you have any syslog server please find the below simple config.
Router(config#logging host x.x.x.x
Router(config)#logging traps (i.e 0 1 2 3 4 5 .. according to your requirement)
before enabling logging be sure that your router is properly configure to collect proper time from any NTP server or manually configure to get time.

Command to set time manually on router is (set clock) or to use ntp server use “ntp server x.x.x.x” to sync clock to router.

Use the logging source-interface configuration command to specify a particular IP address for syslog messages:
Router(config)#logging source-interface Loopback0

5. Clearing the Router’s Log

Use the clear logging command to clear the router’s internal log buffer:
Router#clear logging
Clear logging buffer [confirm]<enter>

6. To display the state of system logging (syslog) and the contents of the standard system logging message buffer, use the show logging privileged EXEC command.
Router# show logging
Syslog logging: enabled
    Console logging: disabled
    Monitor logging: level debugging, 266 messages logged.
    Trap logging: level informational, 266 messages logged.
    Logging to
SNMP logging: disabled, retransmission after 30 seconds
   0 messages logged

This configuration works for Cisco switch and router, or other products of Cisco. The Cisco Switch Cisco 2960 competitive price on 3anetwork.com, pleae refer to the below links:

http://www.3anetwork.com/cisco-catalyst-2960-switches-pri...  Cisco 2960 price.

Kingwei network

--- End ---

Click to Share

Contact Email:
Tags:cisco 2960, Cisco 2960 Price, Cisco IOS
Disclaimer:   Issuers of the press releases are solely responsible for the content of their press releases. PRLog can't be held liable for the content posted by others.   Report Abuse

Latest Press Releases By “


Trending News...

  1. SiteMap
  2. Privacy Policy
  3. Terms of Service
  4. Copyright Notice
  5. About
  6. Advertise
Like PRLog?
Click to Share