From fa07d35067d1f6e32d0f0ab527ff71c6e8149f42 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 13 Apr 2025 22:17:22 +0200 Subject: [PATCH] Update --- index.js | 2 +- scripts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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