diff --git a/index.js b/index.js index 3f29b28..ee014d6 100644 --- a/index.js +++ b/index.js @@ -118,7 +118,7 @@ const processLogLine = async (line, test = false) => { if (!line.includes('[UFW BLOCK]')) return log(1, `Ignoring invalid line: ${line}`, 1); const data = { - date: parseTimestamp(line), // Log timestamp + timestamp: parseTimestamp(line), // Log timestamp srcIp: line.match(/SRC=([\d.]+)/)?.[1] || null, // Source IP address dstIp: line.match(/DST=([\d.]+)/)?.[1] || null, // Destination IP address proto: line.match(/PROTO=(\S+)/)?.[1] || null, // Protocol (TCP, UDP, etc.) diff --git a/scripts b/scripts index 5be84bd..b015169 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 5be84bdf5e7e9e117ba9d3fce8e3b99447abcf18 +Subproject commit b01516966c399162fcc571ef6c48067bd4f77a63