bunyan-syslog-udp 
A pure-JS implementation of bunyan syslog stream on top of UDP protocol.
Installation
npm install bunyan bunyan-syslog-udp
Verify that syslog via UDP is enabled on your system. By default, the syslog daemon listens on port 514.
In order to take advantage of the @CEE cookie functionality either rsyslog
or syslog-ng
must be installed.
For rsyslog, make sure the mmjsonparse module is loaded in /etc/rsyslog.conf
module(load="mmjsonparse")
Usage
var bunyan = require('bunyan');
var bsyslog = require('bunyan-syslog-udp');
var bstream = bsyslog.createBunyanStream({
name: 'udptest',
host: '127.0.0.1',
port: 514,
facility: 'local0',
prefix: '@cee: '
});
var log = bunyan.createLogger({
streams: [{
type: 'raw',
level: 'trace',
stream: bstream
}]
});
log.debug("This is a test");
bstream.close();