| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
This is a page with information about how to send cisco logging to a linux syslog server.
All commands assume you've already logged on to the switch with privilege level 15 access and are already in config mode (conf t).
To make sure the logs are displaying the correct timestamp first configure the date and time correctly.
ntp server 10.10.10.123
clock timezone CET +1
clock summer-time CET recurring 1 Sunday April 2:00 last Sunday October 3:00
switch04#show clock 15:15:53.642 CET Thu Sep 23 2010
Correct!
service timestamp log datetime localtime
no logging console no logging monitor logging syslog.company.local
logging trap 6
Note:
switch04(config)#logging trap ? <0-7> Logging severity level emergencies System is unusable (severity=0) alerts Immediate action needed (severity=1) critical Critical conditions (severity=2) errors Error conditions (severity=3) warnings Warning conditions (severity=4) notifications Normal but significant conditions (severity=5) informational Informational messages (severity=6) debugging Debugging messages (severity=7)
logging facility auth
logging source-interface Vlan1 logging on
switch04#show logging
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes, 0 overruns)
Console logging: level debugging, 2023 messages logged
Monitor logging: level debugging, 0 messages logged
Buffer logging: level debugging, 2023 messages logged
Exception Logging: size (4096 bytes)
File logging: disabled
Trap logging: level informational, 2043 message lines logged
Logging to 10.10.10.14, 1 message lines logged
write exit
Discussion