nsyslog-parser
Advanced tools
Comparing version 0.2.8 to 0.2.9
{ | ||
"name": "nsyslog-parser", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Syslog Parser. Accepts RFC 3164 (BSD) and RFC 5424 formats", | ||
@@ -5,0 +5,0 @@ "author": "David Gómez Matarrodona <solzimer@gmail.com>", |
@@ -48,3 +48,3 @@ const | ||
//Split message | ||
var items = line.substring(entry.pri.length).split(" "); | ||
var items = line.substring(entry.pri.length).split(" ").filter(i=>i.trim().length); | ||
@@ -51,0 +51,0 @@ // Date search |
@@ -0,0 +0,0 @@ const FACILITY = [ |
@@ -0,0 +0,0 @@ # nsyslog-parser |
@@ -12,3 +12,4 @@ const parser = require("./parser.js"); | ||
'<189>192.168.26.254 myApp time=16:31:28 devname=FG600B3909601440 devid=FG600B3909601440 logid=0000000013 type=traffic subtype=forward level=notice vd=VDOM-SNOC srcip=192.168.22.68 srcport=51448 srcintf="port3" dstip=216.58.210.174 dstport=443 dstintf="port7" sessionid=128625552 proto=6 action=close policyid=39 dstcountry="United States" srccountry="Reserved" trandisp=noop service="HTTPS" duration=241 sentbyte=132 rcvdbyte=92 sentpkt=3 rcvdpkt=2 appcat="unscanned"', | ||
'<165>1 2003-10-11T22:14:15.003Z mymachine.example.com evntslog - ID47 [exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"][exampleSDID@32474 iut="4" eventSource="Application" eventID="1012"] BOMAn application event log entry' | ||
'<165>1 2003-10-11T22:14:15.003Z mymachine.example.com evntslog - ID47 [exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"][exampleSDID@32474 iut="4" eventSource="Application" eventID="1012"] BOMAn application event log entry', | ||
'<30>May 8 00:01:01 logica5_engine6 systemd: Starting Session 63 of user root.' | ||
] | ||
@@ -15,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13626
235