Logstash reporter for good
A good reporter to communicate directly with a logstash instance using the lumberjack-protocol client
Install
npm install --save hapi-good-logstash
Usage
Example for sending all ops events to logstash
connection;
The clientoptions are passed to the lumberjack-protocol module and the tlsOptions are passed to the node.js tls socket connection directly.
Security
We use a patched version of logstash and the lumberjack input, which only accepts ssl certificates configured in the logstash config, so the socket connection will be reset, if you provide a wrong certificate. This is unfortunately not the default behavior of the official Logstash release. The official logstash package accepts inputs even if provided a completley different certificate.
We published a blog post with a guide how to use our patched setup on our homepages tech section.