(This how-to is also available in the wiki. )

Prerequisites

This document only covers syslog-ng, so both the client and the server must have syslog-ng installed and properly functioning.

Step 1. Configuring the server.

  1. Open /etc/syslog-ng/syslog-ng.conf for editing.
  2. In the source section, add or un-comment the following line.udp(ip("0.0.0.0") port(514));
  3. Save and exit the file.
  4. Restart syslog-ng*.service syslog-ng restart

Step 2.  Configuring the client.

  1. Open /etc/syslog-ng/syslog-ng.conf for editing.
  2. Add a new destination that points to the syslog server.destination zenoss {udp("192.168.99.23" port(514));};
  3. Add a new log entry that uses the destination you just added.log { source(src); destination(zenoss); };
  4. Restart syslog-ng*.service syslog-ng restart

Syslog entries on the client will now also appear in the syslog of the server. *Some distributions use syslog instead of syslog-ng. SuSE Linux Enterprise is one of these.