
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
log4js-logstash-tcp
Advanced tools
This is a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender.
This is a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender
You can install log4js-logstash-tcp by adding this .git url to your package.json or do a npm install log4js-logstash-tcp
In the "input" part of the logstash server conf :
input {
tcp {
codec => "json"
port => 5050
type => "tcp-input"
}
}
Plain javascript
var log4js = require('log4js');
log4js.configure({
"appenders": [
{
"category": "tests",
"type": "log4js-logstash-tcp",
"host": "localhost",
"port": 5050,
"fields": {
"instance": "MyAwsInstance",
"source": "myApp",
"environment": "development"
}
},
{
"category": "tests",
"type": "console"
}
],
"levels": {
"tests": "DEBUG"
}
});
var log = log4js.getLogger('tests');
// adding context and add it as additional field to each log entry
log.addContext('customer', {id: 123, name: 'John Doe'});
log.error('hello hello');
FAQs
This is a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender.
The npm package log4js-logstash-tcp receives a total of 1,875 weekly downloads. As such, log4js-logstash-tcp popularity was classified as popular.
We found that log4js-logstash-tcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.