How long are activity logs kept?
The retention period is controlled in Settings → Maintenance. New installations default to automatic cleanup enabled with a period of 24 months, but your site’s settings may differ. A scheduled daily job removes entries older than the configured period. Administrators can also delete selected entries or use the manual cleanup tool.
See Log Data and Retention for details, including backups and the settings export.