SLIDE 1
Configuring Syslog Server on Cisco Routers with Cisco SDM Syslog - - PowerPoint PPT Presentation
Configuring Syslog Server on Cisco Routers with Cisco SDM Syslog - - PowerPoint PPT Presentation
Configuring Syslog Server on Cisco Routers with Cisco SDM Syslog Syslog is a standard for forwarding log messages in an Internet Protocol (IP) computer network. It allows separation of the software that generates log messages from the system that
SLIDE 2
SLIDE 3
System logging messages (also known as system error messages) are controlled by the logging process, which distributes system logging messages to the various destinations: logging buffered - send syslog messages to internal memory buffers. Varies by platform. For most platforms, logging to the buffer is disabled by default. logging host - send syslog messages to a remote host. System logging messages are not sent to any remote host. logging console - send syslog messages to all available TTY lines. The logging monitor function is disabled. logging monitor - send syslog messages to all available terminal lines. The default varies by platform. In general, the default is to log all messages.
Logging On Cisco Routers
SLIDE 4
logging host To log system messages and debug output to a remote host, use the logging host command in global configuration mode. To remove a specified logging host from the configuration, use the no form of this command. logging host {{ip-address | hostname} [vrf vrf-name] | ipv6 {ipv6-address | hostname}} [discriminator discr- name | [[filtered [stream stream-id] | xml]] [transport {[beep [audit] [channel chnl-number] [sasl profile- name] [tls cipher [cipher-num] trustpoint trustpt-name]]] | tcp [audit] | udp} [port port-num]] [sequence- num-session] [session-id {hostname | ipv4 | ipv6 | string custom-string}] no logging host {{ip-address | hostname} | ipv6 {ipv6-address | hostname}} SDM does not let you configure any options outside of the IP address or hostname of one or more syslog servers. r1(config)#logging host 10.100.1.100 r1(config)#
Enabling Logging To Remote Syslog Server On Cisco Routers
SLIDE 5
SLIDE 6
Configuring Syslog Settings In SDM
SLIDE 7
Syslog Options – Logging Level
Logging Level The following logging levels are available in Logging Level drop-down lists: emergencies (0) alerts (1) critical (2) errors (3) warnings (4) notifications (5) informational (6) debugging (7) The log collects all messages of the level you choose plus all messages of lower levels, or the router sends all messages of the level you choose plus all messages of lower levels to the logging hosts. For example, if you choose notifications (5), the log collects or sends messages of levels 0 through 5. Firewall logging messages require a logging level of debugging(7), and Application Security logging messages require a level of informational(6). For those of you pursuing Cisco certification, you’ll want to commit these severity levels and names/labels to memory.
SLIDE 8
Syslog Trap Levels
Level Level Keyword Syslog Definition emergencies LOG_EMERG 1 alerts LOG_ALERT 2 critical LOG_CRIT 3 errors LOG_ERR 4 warnings LOG_WARNING 5 notifications LOG_NOTICE 6 informational LOG_INFO 7 debugging LOG_DEBUG The default logging level varies by platform but is generally 7*
SLIDE 9
Configuration
SLIDE 10
Configuration
SLIDE 11
Verification
SLIDE 12
Syslog Monitoring on SDM
SLIDE 13
Syslog on SDM
SLIDE 14
Benefits of Using Syslog Server
Normally this slide at the beginning of the lesson, but I wanted to touch on some of the features/technologies involved with using a syslog server with Cisco devices before talking about the benefits: Persistence – Syslog messages stored in a Cisco device’s buffer are lost on reload or when cleared. Also, once the buffer is full, it will overwrite itself. Syslog servers allow you to store syslog messages for longer periods
- f time…even permanently.
Event correlation across devices – Logs are a great way to troubleshoot network events. With a syslog server you can view the logs of multiple devices in a single source. Time stamps – Syslog servers generally use their own timestamp as well as the timestamp in the syslog
- messages. This is great for network devices that do not have their time synchronized with the rest of the
network. Searching/Sorting – Syslog servers generally give you much better tools to search/sort syslog messages. Storage of logs – Much like persistence, but I mean to highlight long-term storage here. This is beneficial, and sometimes mandated.
SLIDE 15