DefGuard / DefGuard/defguard

Option to periodically clear the public.activity_log_event database table

Open
#1,615 7 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Rust
Stars
2.8k
Forks
115
Avg merge
1d 4h
Merged PRs (30d)
51

Description

**Is your feature request related to a problem? Please describe.**
The database could grow very large over time if there is no retention for the tables.

**Describe the solution you'd like**
An option to periodically clear the entries based on timestamps (e.g., "Delete all logs older than x days").

**Describe alternatives you've considered**
Create my own script to be triggered by cron to handle this task.

**Additional context**
Low priority, but it would be nice to have this feature implemented directly in Defguard.

Result:
- Have entries in the activity log table in the dev environment older than a week.
- Set the cleanup frequency to 7d
- Show that entries older than 7d were removed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.