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.0.17 to 1.0.18

19

bin/logagent.js

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

var logseneToken = argv.t || process.env.LOGSENE_TOKEN
var http = require('http')

@@ -57,2 +58,17 @@ function getFilesizeInBytes (filename) {

function textMsgBodyHandler (req,res) {
var body = ''
req.on('data', function (data) {
body += data
})
req.on('end', function () {
parseLine(body, argv.n || 'cloudfoundry', log)
res.end('ok\n')
})
}
function getHttpServer (port) {
server = http.createServer(textMsgBodyHandler)
return server.listen(port)
}
function tailFile (file) {

@@ -136,2 +152,5 @@ var tail = new Tail(file, {start: getFilesizeInBytes(file)})

}
if(argv.cfhttp) {
getHttpServer(argv.cfhttp)
}
if (argv._.length > 0) {

@@ -138,0 +157,0 @@ // tail files

2

package.json
{
"name": "logagent-js",
"version": "1.0.17",
"version": "1.0.18",
"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