Achievable logoAchievable logo
CCNA
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Introduction to networking
2. Administering Ethernet LANs
3. IP connectivity
4. Network services
5. IPv6
6. Wireless networking
7. Network management and administering network devices
7.1 Remote access to network devices using Telnet and Secure Shell (SSH)
7.2 Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP)
7.3 Syslog
7.4 Simple Network Management Protocol (SNMP)
8. Network security fundamentals
9. Network automation and programmability
Wrapping up
Achievable logoAchievable logo
7.3 Syslog
Achievable CCNA
7. Network management and administering network devices
Our CCNA course is currently in development and is a work-in-progress.

Syslog

6 min read
Font
Discuss
Share
Feedback

Introduction to system logging

Network devices constantly monitor their operating status and generate messages when important events occur. Syslog provides a standardized way to collect, store, and manage these messages. For network administrators, syslog is a core tool for monitoring network health, troubleshooting problems, and maintaining reliable performance.

Syslog also acts as a communication channel between network devices and administrators. When something noteworthy happens - anything from a routine status update to a critical failure - Cisco IOS generates messages to describe the event. These messages can be simple informational notices (such as configuration changes) or urgent alerts (such as hardware failures or security-related events).

Understanding syslog message delivery

Cisco IOS supports several ways to deliver log messages, depending on how quickly you need to see them and how long you need to keep them. A device can:

  • Display messages in real time to logged-in users
  • Store messages locally for later review
  • Send messages to a centralized server for long-term storage and analysis

Real-time message delivery

For users connected through the console port, IOS displays log messages by default. This happens because the default logging console setting sends messages to the console session.

Users connected through SSH or Telnet need two steps before messages will appear on their screen.

First, enable monitoring in Global Configuration mode:

logging monitor

Second, each remote user must enable message display for their own session in Privileged EXEC mode:

terminal monitor

This approach lets each remote user decide whether they want to see log messages during their session, which can be helpful when messages would interrupt other work.

Message storage options

Real-time messages are useful for immediate awareness, but most organizations also need a record of events. Cisco IOS provides two main storage options: local buffered logging and remote syslog server logging.

Buffered logging stores messages in the device’s RAM using the logging buffered command (enabled by default). You can view buffered messages later with the show logging command. Keep these limitations in mind:

  • Buffered logs use device memory.
  • Buffered logs are lost when the device restarts.

Syslog server logging avoids those limitations by sending messages to a syslog server using UDP (port 514). Use this command to specify the server:

logging host [syslog server ip address | hostname]

Centralized syslog servers are useful because they:

  • Preserve logs across device reboots
  • Collect logs from many devices in one place
  • Provide tools for searching, filtering, and analyzing events during troubleshooting

Syslog message structure and components

Each syslog message follows a standard format with fields that are easy for systems to process and text that’s easy for humans to read. Here’s an example:

Apr 21 12:11:05.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down

Here’s what each part means:

  • Timestamp: Indicates when the event occurred (optional, but enabled by default)

    For example:

    Apr 21 12:11:05.083

  • Facility: Identifies the system component that generated the message

    For example:

    %LINEPROTO

  • Severity Level: Indicates the importance of the event

    For example:

    5

  • Mnemonic: Provides a short identifier for the message type

    For example:

    UPDOWN

  • Description: Explains the event in detail

    For example:

    Line protocol on Interface GigabitEthernet0/0, changed state to down

You can adjust the message format to fit your operational needs. For example, you can enable sequence numbers with service sequence-numbers, or you can disable timestamps with no service timestamps. These options can make logs easier to track and read, depending on how you collect and review them.

Syslog severity levels

Syslog uses eight severity levels to describe how important a message is. Levels are numbered 0 through 7, and lower numbers mean more critical events. Knowing these levels helps you decide which messages should be displayed, stored, or forwarded.

Severity level table

Level Number Description Use Case
Emergency 0 System is unusable Complete system failure
Alert 1 Immediate action needed Critical component failure requiring immediate attention
Critical 2 Critical conditions Hard drive errors, backup system failures
Error 3 Error conditions Interface down, routing protocol errors
Warning 4 Warning conditions Configuration warnings, resource utilization warnings
Notice 5 Normal but significant Interface state changes, protocol up/down events
Informational 6 Informational messages Normal operations, configuration confirmations
Debug 7 Debug-level messages Detailed troubleshooting information

A good way to remember the Syslog levels in the order of highest priority to lowest (0 - 7) is:

“Every Awesome Cisco Engineer Will Need Icecream Daily”

  • Every: Emergency (0) - System unusable.
  • Awesome: Alert (1) - Immediate action needed.
  • Cisco: Critical (2) - Critical conditions.
  • Engineer: Error (3) - Error conditions.
  • Will: Warning (4) - Warning conditions.
  • Need: Notification (5) - Normal but significant.
  • Icecream: Informational (6) - Informational messages.
  • Daily: Debugging (7) - Debugging level messages.

When configuring logging services, specifying a severity level causes the device to send all messages at that level and higher (lower numbers). For example, logging console 4 sends severity levels 0 through 4 to the console.

Syslog facilities

Facilities identify which subsystem or process generated a log message. Cisco IOS uses facility codes to group messages by their source. Common facilities include:

Facility Description
LINEPROTO Line protocol events
SYS General system messages
LINK Physical link status changes
OSPF OSPF routing protocol events
BGP BGP routing protocol events
SNMP SNMP-related messages
SEC Security-related messages
IF Interface events

Facilities make troubleshooting faster because you can filter and focus on messages from the subsystem you’re investigating.

Configuring syslog services

Logging configuration controls where messages go and which severity levels are included. The basic pattern is logging [service] [level]:

  • service is the destination (console, monitor, buffered, host, trap)
  • level is the highest severity number you want to include (and the device also includes all more critical levels with lower numbers)

Key configuration commands include:

  • logging console [level]: Controls console message delivery
  • logging monitor [level]: Controls terminal (vty line) session delivery
  • logging buffered [level]: Controls local RAM storage
  • logging host [ip address]: Specifies syslog server destination
  • logging trap [level]: Controls syslog server message levels

The show logging command displays the current logging configuration and recent buffered messages, giving you a quick view of how logging is set up and what the device has recorded.

Debug messages and operational considerations

Debug messages (severity 7) are different from most other syslog messages. The debug command turns on detailed monitoring for specific processes and can generate a continuous stream of output. Because debug output can consume significant CPU resources, it should be used carefully on production devices.

Once enabled, debug stays active until you disable it with the no debug command. It can continue generating messages even after the user who enabled it logs out, so it’s important to turn it off when you’re done to avoid unnecessary performance impact.

Introduction to system logging

  • Syslog standardizes event message collection and management
  • Cisco IOS generates messages for both routine and critical events
  • Syslog enables monitoring, troubleshooting, and communication with administrators

Understanding syslog message delivery

  • Real-time delivery:
    • Console users see messages by default (logging console)
    • Remote users require logging monitor (global) and terminal monitor (per session)
  • Message storage options:
    • Buffered logging: stores in RAM, lost on reboot
    • Syslog server logging: uses UDP port 514, preserves logs, centralizes collection

Syslog message structure and components

  • Standard fields: timestamp, facility, severity level, mnemonic, description
  • Customizable format: enable sequence numbers, toggle timestamps
  • Example message:
    • Apr 21 12:11:05.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down

Syslog severity levels

  • 8 levels (0-7); lower number = higher priority
    • 0: Emergency (system unusable)
    • 1: Alert (immediate action)
    • 2: Critical (critical conditions)
    • 3: Error (error conditions)
    • 4: Warning (warning conditions)
    • 5: Notice (normal but significant)
    • 6: Informational (informational messages)
    • 7: Debug (debugging messages)
  • Specifying a level includes all more critical (lower-numbered) messages

Syslog facilities

  • Facility codes group messages by subsystem
    • Examples: LINEPROTO (line protocol), SYS (system), LINK (physical link), OSPF/BGP (routing protocols), SNMP, SEC (security), IF (interface)
  • Facilities enable targeted troubleshooting and filtering

Configuring syslog services

  • Command pattern: logging [service] [level]
    • logging console [level]: console output
    • logging monitor [level]: vty/terminal sessions
    • logging buffered [level]: local RAM storage
    • logging host [ip address]: syslog server destination
    • logging trap [level]: server message levels
  • show logging: displays configuration and buffered logs

Debug messages and operational considerations

  • Debug (severity 7) provides detailed, process-specific output
  • High CPU/resource usage; use with caution on production devices
  • Debug remains active until explicitly disabled (no debug)

Sign up for free to take 5 quiz questions on this topic

Previous
Next  | 7.4 Simple Network Management Protocol (SNMP)
All rights reserved ©2016 - 2026 Achievable, Inc.

Syslog

Introduction to system logging

Network devices constantly monitor their operating status and generate messages when important events occur. Syslog provides a standardized way to collect, store, and manage these messages. For network administrators, syslog is a core tool for monitoring network health, troubleshooting problems, and maintaining reliable performance.

Syslog also acts as a communication channel between network devices and administrators. When something noteworthy happens - anything from a routine status update to a critical failure - Cisco IOS generates messages to describe the event. These messages can be simple informational notices (such as configuration changes) or urgent alerts (such as hardware failures or security-related events).

Understanding syslog message delivery

Cisco IOS supports several ways to deliver log messages, depending on how quickly you need to see them and how long you need to keep them. A device can:

  • Display messages in real time to logged-in users
  • Store messages locally for later review
  • Send messages to a centralized server for long-term storage and analysis

Real-time message delivery

For users connected through the console port, IOS displays log messages by default. This happens because the default logging console setting sends messages to the console session.

Users connected through SSH or Telnet need two steps before messages will appear on their screen.

First, enable monitoring in Global Configuration mode:

logging monitor

Second, each remote user must enable message display for their own session in Privileged EXEC mode:

terminal monitor

This approach lets each remote user decide whether they want to see log messages during their session, which can be helpful when messages would interrupt other work.

Message storage options

Real-time messages are useful for immediate awareness, but most organizations also need a record of events. Cisco IOS provides two main storage options: local buffered logging and remote syslog server logging.

Buffered logging stores messages in the device’s RAM using the logging buffered command (enabled by default). You can view buffered messages later with the show logging command. Keep these limitations in mind:

  • Buffered logs use device memory.
  • Buffered logs are lost when the device restarts.

Syslog server logging avoids those limitations by sending messages to a syslog server using UDP (port 514). Use this command to specify the server:

logging host [syslog server ip address | hostname]

Centralized syslog servers are useful because they:

  • Preserve logs across device reboots
  • Collect logs from many devices in one place
  • Provide tools for searching, filtering, and analyzing events during troubleshooting

Syslog message structure and components

Each syslog message follows a standard format with fields that are easy for systems to process and text that’s easy for humans to read. Here’s an example:

Apr 21 12:11:05.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down

Here’s what each part means:

  • Timestamp: Indicates when the event occurred (optional, but enabled by default)

    For example:

    Apr 21 12:11:05.083

  • Facility: Identifies the system component that generated the message

    For example:

    %LINEPROTO

  • Severity Level: Indicates the importance of the event

    For example:

    5

  • Mnemonic: Provides a short identifier for the message type

    For example:

    UPDOWN

  • Description: Explains the event in detail

    For example:

    Line protocol on Interface GigabitEthernet0/0, changed state to down

You can adjust the message format to fit your operational needs. For example, you can enable sequence numbers with service sequence-numbers, or you can disable timestamps with no service timestamps. These options can make logs easier to track and read, depending on how you collect and review them.

Syslog severity levels

Syslog uses eight severity levels to describe how important a message is. Levels are numbered 0 through 7, and lower numbers mean more critical events. Knowing these levels helps you decide which messages should be displayed, stored, or forwarded.

Severity level table

Level Number Description Use Case
Emergency 0 System is unusable Complete system failure
Alert 1 Immediate action needed Critical component failure requiring immediate attention
Critical 2 Critical conditions Hard drive errors, backup system failures
Error 3 Error conditions Interface down, routing protocol errors
Warning 4 Warning conditions Configuration warnings, resource utilization warnings
Notice 5 Normal but significant Interface state changes, protocol up/down events
Informational 6 Informational messages Normal operations, configuration confirmations
Debug 7 Debug-level messages Detailed troubleshooting information

A good way to remember the Syslog levels in the order of highest priority to lowest (0 - 7) is:

“Every Awesome Cisco Engineer Will Need Icecream Daily”

  • Every: Emergency (0) - System unusable.
  • Awesome: Alert (1) - Immediate action needed.
  • Cisco: Critical (2) - Critical conditions.
  • Engineer: Error (3) - Error conditions.
  • Will: Warning (4) - Warning conditions.
  • Need: Notification (5) - Normal but significant.
  • Icecream: Informational (6) - Informational messages.
  • Daily: Debugging (7) - Debugging level messages.

When configuring logging services, specifying a severity level causes the device to send all messages at that level and higher (lower numbers). For example, logging console 4 sends severity levels 0 through 4 to the console.

Syslog facilities

Facilities identify which subsystem or process generated a log message. Cisco IOS uses facility codes to group messages by their source. Common facilities include:

Facility Description
LINEPROTO Line protocol events
SYS General system messages
LINK Physical link status changes
OSPF OSPF routing protocol events
BGP BGP routing protocol events
SNMP SNMP-related messages
SEC Security-related messages
IF Interface events

Facilities make troubleshooting faster because you can filter and focus on messages from the subsystem you’re investigating.

Configuring syslog services

Logging configuration controls where messages go and which severity levels are included. The basic pattern is logging [service] [level]:

  • service is the destination (console, monitor, buffered, host, trap)
  • level is the highest severity number you want to include (and the device also includes all more critical levels with lower numbers)

Key configuration commands include:

  • logging console [level]: Controls console message delivery
  • logging monitor [level]: Controls terminal (vty line) session delivery
  • logging buffered [level]: Controls local RAM storage
  • logging host [ip address]: Specifies syslog server destination
  • logging trap [level]: Controls syslog server message levels

The show logging command displays the current logging configuration and recent buffered messages, giving you a quick view of how logging is set up and what the device has recorded.

Debug messages and operational considerations

Debug messages (severity 7) are different from most other syslog messages. The debug command turns on detailed monitoring for specific processes and can generate a continuous stream of output. Because debug output can consume significant CPU resources, it should be used carefully on production devices.

Once enabled, debug stays active until you disable it with the no debug command. It can continue generating messages even after the user who enabled it logs out, so it’s important to turn it off when you’re done to avoid unnecessary performance impact.

Key points

Introduction to system logging

  • Syslog standardizes event message collection and management
  • Cisco IOS generates messages for both routine and critical events
  • Syslog enables monitoring, troubleshooting, and communication with administrators

Understanding syslog message delivery

  • Real-time delivery:
    • Console users see messages by default (logging console)
    • Remote users require logging monitor (global) and terminal monitor (per session)
  • Message storage options:
    • Buffered logging: stores in RAM, lost on reboot
    • Syslog server logging: uses UDP port 514, preserves logs, centralizes collection

Syslog message structure and components

  • Standard fields: timestamp, facility, severity level, mnemonic, description
  • Customizable format: enable sequence numbers, toggle timestamps
  • Example message:
    • Apr 21 12:11:05.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down

Syslog severity levels

  • 8 levels (0-7); lower number = higher priority
    • 0: Emergency (system unusable)
    • 1: Alert (immediate action)
    • 2: Critical (critical conditions)
    • 3: Error (error conditions)
    • 4: Warning (warning conditions)
    • 5: Notice (normal but significant)
    • 6: Informational (informational messages)
    • 7: Debug (debugging messages)
  • Specifying a level includes all more critical (lower-numbered) messages

Syslog facilities

  • Facility codes group messages by subsystem
    • Examples: LINEPROTO (line protocol), SYS (system), LINK (physical link), OSPF/BGP (routing protocols), SNMP, SEC (security), IF (interface)
  • Facilities enable targeted troubleshooting and filtering

Configuring syslog services

  • Command pattern: logging [service] [level]
    • logging console [level]: console output
    • logging monitor [level]: vty/terminal sessions
    • logging buffered [level]: local RAM storage
    • logging host [ip address]: syslog server destination
    • logging trap [level]: server message levels
  • show logging: displays configuration and buffered logs

Debug messages and operational considerations

  • Debug (severity 7) provides detailed, process-specific output
  • High CPU/resource usage; use with caution on production devices
  • Debug remains active until explicitly disabled (no debug)

More from Network management and administering network devices

  • Remote access to network devices using Telnet and Secure Shell (SSH)
  • Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP)
  • Simple Network Management Protocol (SNMP)