Get log data as json over tcp from forwardho servers. commit the data to log files unique to name and host. rotate and gzip files based on configured interval. Watch line events to publish data to stats or an event bus.
this server prefers global. it is configured with substacks confuse and prefers the most local tailreceiver.json file to your current working directory
$>npm install -g tailreceiver
$>tailreceiver
server listening for \n delimited JSON over tcp on 5140
var tailreceiver = require('tailreceiver');
var server = tailreceiver(config);
server.on('line',function(){
console.log('')
});
tailreceiver(config)
tailserver.on
lineObject client provided fields
server set fields
the client can add more fields the default behavior is to add server side fields to the object provided by the client.
let me know if you find any issues or this package is useful