BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.46k stars 1.94k forks source link

Setting to prune old data (Audit Log, possibly others as you see fit) #5264

Open kristiandg opened 1 month ago

kristiandg commented 1 month ago

Describe the feature you'd like

To prevent the database from unnecessary growth (and to make it somewhat "self-cleaning"), I'm looking for the capability to have old Audit Log entires be pruned after a programmable duration. For example, if I set it to prune activity after 366 days, then it would remove any entries from the Audit Log that are older than 366 days.

If there are other places this might benefit (like monitoring for page edits and such), then it could certainly be expanded to that as well, but right now, the primary one I see, is the Audit Log.

Describe the benefits this would bring to existing BookStack users

This would serve to keep the Audit Log from growing too large unnecessarily, by allowing the system to self-clean stale entries that now are essentially irrelevant.

Can the goal of this request already be achieved via other means?

I'm told some direct manipulation of the database could achieve this, but that doing so may cause unintended damage to other elements with BookStack.

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

Under 3 months

Additional context

No response