mirror of
https://github.com/SubleXBle/Fail2Ban-Report.git
synced 2026-01-30 13:28:28 -06:00
Update fail2ban_log2json.sh
This commit is contained in:
@@ -7,7 +7,7 @@ mkdir -p "$OUTPUT_JSON_DIR"
|
||||
|
||||
echo "[" > "$OUTPUT_JSON_FILE"
|
||||
|
||||
# Grep alle relevanten Events
|
||||
# Grep all relevant Events
|
||||
grep -E "(Ban|Unban)" "$LOGFILE" | awk -v today="$TODAY" '
|
||||
{
|
||||
timestamp = $1 " " $2;
|
||||
|
||||
Reference in New Issue
Block a user