Lab Objective:
Learn how to configure a syslog server.
Lab Purpose:
Syslog is a standard for message logging. It can be used for system management, security, and auditing as well as for general troubleshooting. Syslog can be installed on printers, routers, and many other device types. It offers a number of severity levels from debug up to emergency level.
Lab Tool:
Packet Tracer
Lab Topology:
Please use the following topology to complete this lab exercise:

Lab Walkthrough:
Task 1:
Use one router and one server; connect them using a crossover cable.
Task 2:
Configure the IP address on the router and server.
Router(config)#host R0
R0(config)#int f0/0
R0(config-if)#ip add 192.168.1.1 255.255.255.0
R0(config-if)#no shut

Task 3:
Ensure the ‘SYSLOG’ feature on the server is enabled (it should be enabled by default).

Task 4:
Add the IP address of the syslog server to the router. Then set the logging level. The options are somewhat limited on Packet Tracer.
R0(config)#logging host 192.168.1.2
R0(config)#logging?
A.B.C.D IP address of the logging host
buffered Set buffered logging parameters
console Set console logging parameters
host Set syslog server IP address and parameters
on Enable logging to all enabled destinations
trap Set syslog server logging level
userinfo Enable logging of user info on privileged mode enabling
R0(config)#logging trap?
debugging Debugging messages (severity=7)
<cr>
R0(config)#logging trap debugging
Task 5:
We are not logging debug messages on the router. We just need to turn on debugs for ping traffic, which uses ICMP.
R0#debug ip icmp
ICMP packet debugging is on
Task 6:
Ping the syslog server and then check to see if the log has been updated.
R0#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!
ICMP: echo reply rcvd, src 192.168.1.2, dst 192.168.1.1
!
ICMP: echo reply rcvd, src 192.168.1.2, dst 192.168.1.1
!
ICMP: echo reply rcvd, src 192.168.1.2, dst 192.168.1.1
!
ICMP: echo reply rcvd, src 192.168.1.2, dst 192.168.1.1
!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

Note:
Of course, there are many levels and services we can log; this is just an introduction.
