we created a plugin to purge the event and manager logs:
This is the code to paste into the plugin:
$number_of_days = isset($no_days) ? $no_days :"";
if ($number_of_days)
{
$cut_off_date = time() - ($number_of_days * 24 * 60 * 60);
$query = "DELETE FROM modx_manager_log WHERE timestamp<'{$cut_off_date}'";
$modx->db->query($query);
$query = "DELETE FROM modx_event_log WHERE createdon<'{$cut_off_date}'";
$modx->db->query($query);
}
this has to be pasted into the configuration:
&no_days=Number of Days;text;1
and it should be triggered at: OnManagerLogin
This way all events in the manager and event log that are older than the number of days you set in the configuration (default is 1) will be purged from the logs when someone logs into the manager.
Olaf