rsyslog
Sprays packets to a remote RFC5424 syslog, e.g. at Papertrail
Relying on the defaults:
const RemoteSyslog SEVERITY = ;const rsyslog = ;rsyslog;rsyslog;
Specifying the results in full detail:
const RemoteSyslog FACILITY SEVERITY NILVALUE = ;const os = ;const rsyslog = target_host: '127.0.0.1' // syslog server's hostname target_port: 514 // syslog server's port hostname: oshostname // sender's hostname facility: FACILITYlocal0 // 'local0' would also do appname: NILVALUE procid: processpid;rsyslog;rsyslog;
RFC5424 Details
- All
HEADER
fields get reasonable defaults - The
MSG
is always UTF-8 encoded STRUCTURED-DATA
is not yet supported- You should read the section on message length
FACILITY
,SEVERITY
, andNILVALUE
are exported for your convenience
Change Log
1.1.1: fix scheduling problem revealed by buf.byteLength
crasher
1.1.0: fix awful spec violation (missing STRUCTURED-DATA
); add procid
option