Log retention decides how long events are kept before they are deleted automatically. On Free installations, Aegisify Shield keeps Activity Log entries for up to 7 days.
Where to set it
Aegisify Shield → Activity Log → Settings → Retention Settings:
- Retain logs for (days): database retention. Free installations are limited to 7 days; with an active Aegisify subscription you can choose a longer period.
- Flat file retention (days): how long entries stay in the protected flat file at
wp-content/aegisify-logs/aegisify-shield/aegisshield.log. Default 7 days.
Older entries are removed automatically by Shield’s maintenance job.
Is 7 days enough?
For many small sites, a week is enough to investigate recent issues. Consider longer retention (Pro) if:
- You review logs weekly or monthly.
- Incidents may be discovered late (many compromises are found weeks afterward).
- You need records for clients or compliance.
Manual purge
Use Manual Purge to delete entries older than your retention settings immediately.
Keeping copies
On Pro, scheduled CSV archives keep long-term copies outside the live log table. See Log archive enabled.
Related: Extended retention, Log retention days.
