Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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,:

    $ModLoad imudp.so
    $UDPServerRun 514
  3. Then start the rsyslogd daemon with the following command:

    $ sudo /usr/sbin/rsyslogd

Note

Its detailed installation and configuration is out of the scope of this book. By the way, you can refer to the official...