A good reporter to communicate directly with a logstash instance
npm install --save good-logstash-tcp
good-logstash-tcp
is a write stream use to send events to logstash
Example for sending all log events to logstash
connection.register({
register: require('good'),
options: {
reporters: {
logstash: [
{
module: 'good-squeeze',
name: 'Squeeze',
args: [{ log: '*'}]
},
{
module: 'good-logstash-tcp',
args: [{
tlsOptions: {
host: 'localhost',
port: 8001
}
}]
}
]
}
}
);