Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log4js-logstash-tcp

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log4js-logstash-tcp - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

index.js

@@ -37,6 +37,6 @@ 'use strict';

function log(loggingEvent) {
let currentAPMTraceparent = false
let currentAPMTransaction = false
try {
const apm = require('elastic-apm-node');
currentAPMTraceparent = apm.currentTraceparent
currentAPMTransaction = apm.currentTransaction
} catch(e) {

@@ -79,8 +79,7 @@ // ignore APM if it's not loaded

'@timestamp': (new Date(loggingEvent.startTime)).toISOString(),
// this allows to show logs generated by logging events together with APM events
...(currentAPMTransaction.ids || {}),
type: type,
message: layout(loggingEvent)//.data[0]
};
// this allows to show logs generated by logging events together with APM events
if(currentAPMTraceparent)
logObject['logstash-elastic-apm-traceparent'] = currentAPMTraceparent;

@@ -87,0 +86,0 @@ if (checkArgs(config.args, false)) {

{
"name": "log4js-logstash-tcp",
"version": "2.0.1",
"version": "2.0.2",
"author": "Aigent B.V.",

@@ -5,0 +5,0 @@ "description": "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.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc