A Logstash UDP transport for winston.
Based on a gist by mbrevoort and inspired by winston-logstash.
Recommended method:
var winston = require('winston'),
LogstashUDP = require('winston-logstash-udp').default;
var logger = new(winston.Logger)({
transports: [
new LogstashUDP({
port: 9999,
appName: 'my application name',
host: '127.0.0.1'
})
]
});
input {
# Sample input over UDP
udp { codec => "json" port => 9999 type => "sample" }
}
output {
stdout { debug => true debug_format => "json"}
}
npm test
Author: Richard Simpson
See LICENSE for the full license text.