SAIL Community Supported PBX

SAIL Forums => Debian => Topic started by: compsos on October 26, 2017, 10:31:15 PM

Title: Fail2ban not reading logs
Post by: compsos on October 26, 2017, 10:31:15 PM
Hi
When in the portal going to "Settings" and then "Logs" the following is diplayed
"Could not read file fail2ban.log!"
Restarting fail2ban with systemctl restart fail2ban.service cures it until next time.
From what I have read it is the log rotation that leaves fail2ban looking for the pre rolled log files.
Where would be the best place to cause a reload of fail2ban? It the end of the log rotate script or a cron job nightly to reload?
A reload will cause it to drop existing listed IP addresses.
Title: Re: Fail2ban not reading logs
Post by: sysadmin on November 10, 2017, 09:08:12 PM
I don't think it matters much which you use. I would probably choose cron just because it's easier.