XF 1.5 Prune Admin Log, Moderator Log

They aren't really supposed to be cleared (in that way), nor is there much benefit in doing so. They are pruned automatically.

If you absolutely have to prune them now, you could truncate/empty the xf_admin_log and xf_moderator_log table. (Take back ups first).
 
Where does one set the length of time for automatic pruning of the admin log?
I see options for moderator log and user change log (both set to 30 days) but my admin log goes back to 12/2015 so it's at >60 days right now

-edit: found it as a config.php option

Code:
$config['adminLogLength'] = 30;
The number of days to keep the log of all administrator activities in the admin control panel.
 
Last edited:
Back
Top Bottom