From 2a2629cd3af2ac92131fdb6cfc06c0cc84c27736 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Tue, 19 Nov 2024 04:44:53 +0100 Subject: [PATCH] Cleanup --- reporter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reporter.sh b/reporter.sh index 839f07e..3bc8b34 100644 --- a/reporter.sh +++ b/reporter.sh @@ -172,7 +172,7 @@ determine_categories() { process_log_line() { local line="$1" if [[ "$line" == *"[UFW BLOCK]"* ]]; then - local timestamp src_ip proto spt dpt ttl len tos categories warsaw_time + local timestamp src_ip proto spt dpt ttl len tos categories timestamp=$(echo "$line" | awk '{print $1, $2, $3}') [[ -z "$timestamp" ]] && timestamp=$(date '+%Y-%m-%d %H:%M:%S')