Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
hapi-good-logstash-tcp
Advanced tools
A good reporter to communicate directly with a logstash instance using the lumberjack-protocol client
npm install --save hapi-good-logstash
Example for sending all ops events to logstash
connection.register({
register: require('good'),
options: {
opsInterval: 15000,
reporters: [{
reporter: require("hapi-good-logstash"),
args: [{
ops: '*'
}, {
tlsOptions: {
host: "localhost",
port: 8001,
ca: [fs.readFileSync('path to .crt')],
key: [fs.readFileSync('path to .key')],
cert: [fs.readFileSync('path to .crt')]
},
clientOptions: {
maxQueueSize: 500
}
}]
}]
}
}, function (err) {
if (err) {
console.log('Failed loading good plugin', err);
}
});
The clientoptions are passed to the lumberjack-protocol module and the tlsOptions are passed to the node.js tls socket connection directly.
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.
FAQs
A good reporter to talk to a logstash server via tcp
The npm package hapi-good-logstash-tcp receives a total of 2 weekly downloads. As such, hapi-good-logstash-tcp popularity was classified as not popular.
We found that hapi-good-logstash-tcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.