Here is an example for FreeBSD and Linux platforms.
Log on to the target device (as a super user)
Open /etc/syslog-ng/syslog-ng.conf file with a text editor (e.g VI).
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(); };
Add destination information (in this case, the Zenoss server). See example below:
log { source(src); destination(zenoss); };