configuring syslog server on cisco routers
play

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


  1. Configuring Syslog Server on Cisco Routers with Cisco SDM

  2. 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 stores the messages. Syslog is a client/server protocol : a logging application transmits a maximum 1024-byte text message to the syslog receiver. The receiver is commonly called syslogd, syslog daemon or syslog server. Syslog messages may be sent via the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP). The data is sent in cleartext ; although not part of the syslog protocol itself, an SSL wrapper may be used to provide for a layer of encryption through SSL/TLS. Syslog uses the port number 514 . Syslog is typically used for computer system management and security auditing . While it has a number of shortcomings, syslog is supported by a wide variety of devices and receivers across multiple platforms. Because of this, syslog can be used to integrate log data from many different types of systems into a central repository. Syslog is now standardized within the Syslog working group of the IETF. Text is from Wikipedia, emphasis is mine.

  3. Logging On Cisco Routers 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.

  4. Enabling Logging To Remote Syslog Server On Cisco Routers 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)#

  5. Configuring Syslog Settings In SDM

  6. 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.

  7. Syslog Trap Levels Level Level Keyword Syslog Definition 0 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*

  8. Configuration

  9. Configuration

  10. Verification

  11. Syslog Monitoring on SDM

  12. Syslog on SDM

  13. 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 of 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.

  14. Summary While using a syslog server is usually considered a necessity in larger networks, I would argue that even very small networks can benefit greatly from implementing a syslog server. In some industries a syslog server may be mandated as part of a larger security/audit process. Using a remote syslog server rather than just the local logging buffer on Cisco devices gives you a number of advantages such as message persistence, event correlation across devices, and advanced message searching/sorting to name a few examples. Basic syslog server configuration on a Cisco device is ridiculously easy (‘logging host x.x.x.x’). Cisco SDM allows you to configure the local syslog buffer as well as configure the router to use a remote syslog server. The syslog options available to you via SDM are pretty limited. I would strongly advise reviewing syslog configuration on the CLI to get a better grasp of the various options you can configure.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend