Administration Guide

  • Docs Home
  • Community Home

4. Forwarding Syslog Messages using Syslog-ng

Here is an example for FreeBSD and Linux platforms.

  1. Log on to the target device (as a super user)

  2. Open /etc/syslog-ng/syslog-ng.conf file with a text editor (e.g VI).

  3. Add source information to file. See example below:

    FreeBSD:

    source src { unix-dgram("/var/run/log"); internal ();};

    Linux: (will gather both system and kernel logs)

    source src {
    internal();
    unix-stream("/dev/log" keep-alive(yes) max-connections(100));
    pipe("/proc/kmsg");
    udp();
    };
  4. Add destination information (in this case, the Zenoss server). See example below:

    log { source(src); destination(zenoss); };