Fixes for srcIp and dstIp
This commit is contained in:
1 parent
d4a9491d80
commit
321cd89a1a
1 file changed
+2
-2
@@ -99,8 +99,8 @@ const processLogLine = async (line, test = false) => {
|
|||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
timestamp: parseTimestamp(line),
|
timestamp: parseTimestamp(line),
|
||||||
srcIp: line.match(/SRC=([\d.]+)/)?.[1] || null,
|
srcIp: line.match(/SRC=(\S+)/)?.[1] || null,
|
||||||
dstIp: line.match(/DST=([\d.]+)/)?.[1] || null,
|
dstIp: line.match(/DST=(\S+)/)?.[1] || null,
|
||||||
proto: line.match(/PROTO=(\S+)/)?.[1] || null,
|
proto: line.match(/PROTO=(\S+)/)?.[1] || null,
|
||||||
spt: parseNumber(line, /SPT=(\d+)/),
|
spt: parseNumber(line, /SPT=(\d+)/),
|
||||||
dpt: parseNumber(line, /DPT=(\d+)/),
|
dpt: parseNumber(line, /DPT=(\d+)/),
|
||||||
|
|||||||
Reference in new issue
Block a user