bfstop icon indicating copy to clipboard operation
bfstop copied to clipboard

Purging feature should also delete old log entries

Open Jumanji1010 opened this issue 3 years ago • 3 comments

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 avatar Sep 17 '21 06:09 Jumanji1010

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

Jumanji1010 avatar Sep 17 '21 08:09 Jumanji1010

Attached pictures

Jumanji1010 avatar Sep 17 '21 08:09 Jumanji1010

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).

codeling avatar Sep 17 '21 08:09 codeling