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
.
To install into a Fedora 21 system, do as follows:
$ sudo yum -y install rsyslog
Once done, enable the following directives into
/etc/rsyslog.conf
,:$ModLoad imudp.so $UDPServerRun 514
Then start the
rsyslogd
daemon with the following command:$ sudo /usr/sbin/rsyslogd