codeling / bfstop

Brute Force Stop Plugin (for Joomla!)
https://bfstop.bfroehler.info
GNU General Public License v3.0
36 stars 22 forks source link

Purging feature should also delete old log entries #185

Open Jumanji1010 opened 3 years ago

Jumanji1010 commented 3 years ago

As stated in title… Set duration to 1 week, message ‚Purging entries older than 1 weeks‘ appears once a day but older entries are not deleted.

Jumanji1010 commented 3 years ago

0036EE5A-B765-4B63-A251-88CE459C33D5 BD59D4F6-0E03-4993-9C22-5426E7E2BC18

Jumanji1010 commented 3 years ago

Attached pictures

codeling commented 3 years ago

The purging option is only about purging failed logins, old banned IP entries, and old unblock entries (in the database). What you show is the log file ([joomla-log-directory]/plg_system_bfstop.log.php) - there currently isn't an automatic way in bfstop to delete or trim the log file.

Two workarounds would be

  1. If you have shell access to your server, create a log rotation configuration for the bfstop log file
  2. Occasionally delete the log file, e.g. via FTP/SFTP.

It sounds like a good idea however, to have an automatic mechanism in place for trimming the log file, in order to avoid overly large log files clogging up disk space on the server. I think even Joomla itself does not provide any support for deleting/trimming its log file at the moment (though I'm not 100% sure on that).