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

nsyslog-parser

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nsyslog-parser - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

package.json
{
"name": "nsyslog-parser",
"version": "0.8.1",
"version": "0.8.2",
"description": "Syslog Parser. Accepts RFC 3164 (BSD), RFC 5424 and CEF formats",

@@ -5,0 +5,0 @@ "author": "David Gómez Matarrodona <solzimer@gmail.com>",

@@ -33,3 +33,6 @@ const

else if(!entry.messageid) entry.messageid = item.trim();
else if(!entry.structuredData) entry.structuredData = item.trim();
else if(!entry.structuredData) {
entry.structuredData = item.trim();
return false;
}
else return true;

@@ -131,3 +134,3 @@ }

var r = assign(entry,item.replace(/: $/,"").trim())
if(r) {
if(r===true) {
items.unshift(item);

@@ -137,2 +140,6 @@ entry.message = items.join(" ");

}
else if(r===false) {
entry.message = items.join(" ");
endparse = true;
}
}

@@ -139,0 +146,0 @@ }

@@ -24,3 +24,4 @@ module.exports = [

'Sep 19 08:26:10 host CEF:0|security|threatmanager|1.0|100|detected a = in message|10|src=10.0.0.1 act=blocked a \\= dst=1.1.1.1',
'Jan 18 11:07:53 dsmhost CEF:0|Trend Micro|Deep Security Manager|<DSM version>|600|User Signed In|3|src=10.52.116.160 suser=admin target=admin msg=User signed in from 2001:db8::5'
'Jan 18 11:07:53 dsmhost CEF:0|Trend Micro|Deep Security Manager|<DSM version>|600|User Signed In|3|src=10.52.116.160 suser=admin target=admin msg=User signed in from 2001:db8::5',
'<30>1 2018-06-24T22:22:53Z my.test.com testapp 26599 testapp - This: contains two : colons'
];
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