Skip to content

Request: Log retention on workspace level #36

@MegaMinxCoding

Description

@MegaMinxCoding

Summary:
Introduce a log retention mechanism that allows each workspace to define how long logs (e.g., email delivery, event, and user activity logs) are stored before automatic deletion.

Background / Current Behavior:
Currently, the system stores all logs indefinitely. This can lead to increased storage costs, slower query performance, and potential compliance issues for customers who require specific data retention limits (e.g., GDPR or internal data governance policies).

Proposed Solution:

  • Implement a log retention policy framework that supports automatic log cleanup after a defined period.
  • Allow configuration at the workspace level, so each workspace can specify its own retention_duration (e.g., 30, 90, 180, or 365 days).
  • Add a system job to handle periodic deletion of expired logs / go with the cron solution.
  • Optionally provide an audit record of purged data for compliance visibility.

Benefits:

  • Prevents unbounded log growth and reduces storage costs.
  • Improves system performance and manageability.
  • Enables compliance with diverse data retention and privacy requirements.
  • Offers flexibility for multi-tenant environments.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions