New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logagent-js

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logagent-js - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

19

bin/logagent.js

@@ -89,3 +89,2 @@ #!/usr/bin/env node

msg = {
'@timestamp': new Date(),
message: data.message,

@@ -99,2 +98,11 @@ app: data.app,

}
var optionalFields = ['method', 'path', 'host', 'request_id', 'fwd', 'dyno', 'connect', 'service', 'status', 'bytes']
optionalFields.forEach (function (f) {
if(data[f]) {
msg[f] = data[f]
}
})
if (!data['@timestamp']) {
msg['@timestamp'] = new Date()
}
}

@@ -143,11 +151,2 @@ console.log(JSON.stringify(msg))

function parseAttributes (p)
{
var keyValue = msg.trim().split(' ')
keyValue.forEach (function (kv) {
var kvs = kv.split ('=')
p [kvs[0].trim()] = kvs[1].trim()
})
}
function cloudFoundryHandler (req, res) {

@@ -154,0 +153,0 @@ var body = ''

{
"name": "logagent-js",
"version": "1.1.6",
"version": "1.1.7",
"description": "Smart log parser written in Node",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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