mirror of
https://github.com/SubleXBle/Fail2Ban-Report.git
synced 2026-02-08 17:58:32 -06:00
Update fail2ban_log2json.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user