Syslog

Overview

Syslog has been standard for computer message logging for many years. Fundamentally, every Linux and Unix variant delivers some level of syslog message logging as a default.

Like any other logging capability, Syslog must be enabled to work and the user needs to decide what to do with the data being logged. The choice of destination can be as simple as log files or you can use database logging, where Syslog writes directly to a fully relational database engine.

The Syslog Protocol

Syslog is an IETF standards track protocol with reference document RFC 5424 first issued in 2009. To find out more visit:(http://tools.ietf.org/html/rfc5424) As with any IETF standard, the current status and definitions can be found at the Official Internet Protocol Standards website: http://www.rfc-editor.org/ The information found in this standard outdates the original BSD Unix standard, RFC 3164, which was an informational document, rather than a standards proposal. Additional IETF standards documents cover TLS Transport Mapping for Syslog (RFC 5425) and Transmission of Syslog messages over UDP (RFC 5426).

Syslog-ng

Syslog-ng is an extension of the basic syslog protocol currently developed by Balabit IT Security. This open source code supports most distributions of Linux and Unix, both open source and proprietary. Some distributions install it as the default syslog, and there is even a Cygwin port for Microsoft Windows. Syslog-ng was the first version to support logging directly into a database, log to multiple files destinations, directing log messages to local applications, extract structured data from unstructured messages and a number of other features which are now considered standard to the syslog environment. Both open source and proprietary versions of Syslog can be obtained on the Balabit IT Security website: (http://www.balabit.com/network-security/syslog-ng)

Rsyslog

Rsyslog is the efficient system for log processing. This open source project started in 2004 with the goal of building a faster and more flexible syslog implementation. Version 7 (currently version 7.6.3) was released in December 2013 and a re-engineered Version 8.2.0 in April 2014. Both versions are currently supported by the open source community. They can be found on the Rsyslog home page: www.rsyslog.com

Because much of the development of syslog tools stared with the information RFC 3164, there are many branches which have incompatible extensions. One of the goals of Rsyslog was to enable a service that would work with as many of the branches as possible, as well as support the later RFC standards discussed earlier. The performance claims for Rsyslog are also much greater than for other existing standardized implementations, as well as the supported sources and destinations for data. Direct database logging to both open source and commercial databases is supported as well as source messaging from Linux, Unix, and Microsoft Windows devices.

Syslogd

The syslogd that ships with BSD based systems allows for TCP forwarding. However UDP is only supported on OSX and a number of Linux platforms. To configure syslog to forward your logs to InsightOps, you will need to modify your syslog config file (usually at /etc/syslog.conf) and restart syslog.

See Syslogd for more information.