Activity Events Truncation #901

Open
opened 2025-11-20 05:19:36 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @adam-skalicky on GitHub (May 17, 2024).

Is your feature request related to a problem? Please describe.
There does not appear to be a truncation option for event logs. In our modest early adopter setup, we already have 2500+ entries for about 5% of our target user footprint with under a month of daily use. There is a concern that the log file sizes and accessibility will become unmanageable at scale. As the logs are stored in SQL Lite, it is difficult to build external log truncation as there may be locking issues.

Describe the solution you'd like
A configurable max log life (preferably expressed as a time/number of days) that results in logs exceeding this value to be automatically truncated from the database.

Describe alternatives you've considered
External truncation scripts (like a cronjob) - a little hacky and runs into locking issues.
A delete API method - This raises a host of security issues.

Additional context
Related to API Level Querying for Activity Events

Originally created by @adam-skalicky on GitHub (May 17, 2024). **Is your feature request related to a problem? Please describe.** There does not appear to be a truncation option for event logs. In our modest early adopter setup, we already have 2500+ entries for about 5% of our target user footprint with under a month of daily use. There is a concern that the log file sizes and accessibility will become unmanageable at scale. As the logs are stored in SQL Lite, it is difficult to build external log truncation as there may be locking issues. **Describe the solution you'd like** A configurable max log life (preferably expressed as a time/number of days) that results in logs exceeding this value to be automatically truncated from the database. **Describe alternatives you've considered** External truncation scripts (like a cronjob) - a little hacky and runs into locking issues. A delete API method - This raises a host of security issues. **Additional context** Related to [API Level Querying for Activity Events](https://github.com/netbirdio/netbird/issues/2009)
saavagebueno added the feature-requestapiself-hosting labels 2025-11-20 05:19:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#901