Cleanup
This commit is contained in:
parent
7128e99d23
commit
2a2629cd3a
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ determine_categories() {
|
||||||
process_log_line() {
|
process_log_line() {
|
||||||
local line="$1"
|
local line="$1"
|
||||||
if [[ "$line" == *"[UFW BLOCK]"* ]]; then
|
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}')
|
timestamp=$(echo "$line" | awk '{print $1, $2, $3}')
|
||||||
[[ -z "$timestamp" ]] && timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
[[ -z "$timestamp" ]] && timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue