Update fail2ban_log2json.sh

This commit is contained in:
SubleXBle
2025-08-16 21:56:53 +02:00
committed by GitHub
parent 4a2566d1b4
commit cf2a90058c

View File

@@ -2,7 +2,7 @@
# === Configuration ===
LOGFILE="/var/log/fail2ban.log" # Path to Fail2Ban log file (adjust if needed)
OUTPUT_JSON_DIR="/var/www/Fail2Ban-Report/archive" # Target folder for JSON files (adjust if needed)
OUTPUT_JSON_DIR="/opt/Fail2Ban-Report/archive/YOUR-HOSTNAME/fail2ban" # Target folder for JSON files (adjust if needed)
# === Preparation ===
TODAY=$(date +"%Y-%m-%d") # current date in format "YYYY-MM-DD"