Creating a syslog-handler

In this recipe, we will learn how to use "syslog". The syslog is a standard protocol used for message logging. This standard has been implemented for different operating systems, such as Linux, Unix, and Windows. In 2009, the Internet Engineering Task Force (IETF) standardized the "syslog" protocol specification, which can be viewed at the following address:

http://tools.ietf.org/html/rfc5424

You will probably use syslog-handler in environments where a centralized logging system is used to collect all system information.

Lastly, for this recipe I will use a syslog server named syslog-ng.

  1. To install into a Fedora 21 system, do as follows:
    $ sudo yum -y install rsyslog
  2. Once done, enable the following directives into /etc/rsyslog.conf ...

Get WildFly Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.