FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

Move Event Log reaping to the Reaper service and limit total records to remove at once #2789

Open robotdan opened 2 weeks ago

robotdan commented 2 weeks ago

Move Event Log reaping to the Reaper service and limit total records to remove at once

Description

We should use a similar pattern for reaping Audit Logs and Login Records for Event Logs.

Specifically we should be limiting the number of records deleted at once to account for edge cases where a customer were to increase their retention to a very larger number such as 100M, and then reduce it to 500. In this scenario, ideally we would not try and remove all of these records all at once.

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.