Update
This commit is contained in:
1 parent
2ecd873ea4
commit
fa07d35067
2 files changed
+2
-2
No files matched your search
@@ -118,7 +118,7 @@ const processLogLine = async (line, test = false) => {
|
|||||||
if (!line.includes('[UFW BLOCK]')) return log(1, `Ignoring invalid line: ${line}`, 1);
|
if (!line.includes('[UFW BLOCK]')) return log(1, `Ignoring invalid line: ${line}`, 1);
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
date: parseTimestamp(line), // Log timestamp
|
timestamp: parseTimestamp(line), // Log timestamp
|
||||||
srcIp: line.match(/SRC=([\d.]+)/)?.[1] || null, // Source IP address
|
srcIp: line.match(/SRC=([\d.]+)/)?.[1] || null, // Source IP address
|
||||||
dstIp: line.match(/DST=([\d.]+)/)?.[1] || null, // Destination IP address
|
dstIp: line.match(/DST=([\d.]+)/)?.[1] || null, // Destination IP address
|
||||||
proto: line.match(/PROTO=(\S+)/)?.[1] || null, // Protocol (TCP, UDP, etc.)
|
proto: line.match(/PROTO=(\S+)/)?.[1] || null, // Protocol (TCP, UDP, etc.)
|
||||||
|
|||||||
+1
-1
Submodule scripts updated: 5be84bdf5e...b01516966c.
Reference in new issue
Block a user