Syslog (System logging)

syslog server

What is Syslog?

Syslog (System logging) is a Layer4 protocol for producing and sending log/event information from Cisco, Unix/Linux, and Windows Devices systems to a centralized log/event message collector called Syslog Server.

 

Features of Syslog

Below are some important features of Syslog:

  • The purpose of Syslog is for logs/errors management
  • Syslog belongs to Layer4 of OSI Model
  • Syslog servers listen on UDP port 514 for messages
  • Syslog is a client push model

 

syslog-system-logging-1

 

Syslog Logging Locations

The following are the different locations Syslog messages can be sent to:

  1. Console line: This means that Syslog messages will be displayed when connected to the device through the console port. Every message from level 0 to level 7 is displayed by default when connected to the CLI via the devices console port
  2. VTY lines: This is the next location where Syslog messages will be displayed in the CLI when connected to the device through Telnet or SSH. Logging to the VTY lines is disabled by default, hence Syslog messages will not be displayed if you are connecting to the device either through Telnet or SSH
  3. Buffer: In this location, Syslog messages will be stored in RAM. All messages from level 0 to level 7 will be displayed in the buffer by default. In order to view the message in the buffer, use the “show logging” command
  4. External server: The device can also be configured to send Syslog messages to an external server. This is very useful and important both in large networks and small networks. Having a central server for the Syslog messages makes network management and comparing the logs of multiple devices a lot easier

 

How to enable Syslog on Cisco Switches/Routers

R1(config)#logging host 12.12.12.99

(Enables Cisco Router to send all logs to a Syslog server at 12.12.12.99)

 

 

 

 

You might also be interested in our free Online Quizzes on all IT topics including Cisco CCNA, Cyber Security, Python Programming, Linux & Ethical Hacking:

Free Online Quizzes (Best for Cisco CCNA, Huawei HCNA, N+)

You can also view free study notes (Cheat sheets) for long term memory:

Networkwalks Summary Cheatsheets

Follow our Facebook Page & YouTube Channel for more updated Cheatsheets & Quizzes:

Written by 

4 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments