nsyslog-parser
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"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' | ||
]; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70029
777
0