Log retention days controls how many days of Activity Log entries Aegisify Shield keeps. It is set in Aegisify Shield → Activity Log → Settings → Retention Settings.
The two settings
- Retain logs for (days): entries in the database table older than this are cleaned up automatically by Shield maintenance. Free installations can keep up to 7 days; Pro can keep longer (30 days is the default for new configurations).
- Flat file retention (days): older entries are removed from
wp-content/aegisify-logs/aegisify-shield/aegisshield.log. Default 7 days.
Click Save Settings after changing either value.
Running a manual purge
Manual Purge immediately deletes database rows and flat-file entries older than your retention settings. You will be asked to confirm because the deletion is permanent. The purge itself is recorded in the Activity Log.
Choosing a value
- 7 days: small sites with frequent reviews.
- 30 to 90 days (Pro): most business sites.
- Longer (Pro): only when required, combined with scheduled archives.
Why automatic cleanup matters
Unlimited logs grow the database, slow queries, and keep personal data longer than necessary. Automatic retention keeps the log useful and lean.
Related: Basic retention, Extended retention.
