Decide how long to keep audit logs, run history and trash
Compliance pulls in two directions. Some rules want records kept for years: an audit log for seven, because a regulator might ask. Others want data gone as soon as it isn't needed: test runs that captured personal data in failed responses, old sync history. Data retention lets an Enterprise organization set both.
What a policy covers
| History | Range | Without a policy |
|---|---|---|
| Audit log | 30 days to 7 years | 90 days |
| Run history | 7 days to 10 years, or forever | forever |
| Sync history | 7 to 90 days | 90 days |
| Trash | 1 to 30 days | 30 days |
| Access reviews (completed or cancelled) | 90 days to 7 years, or forever | forever |
Run history includes collection runs, test runs and recent requests. The defaults are what Requestarium already does, so saving a policy with the defaults changes nothing.
A few limits:
- Only the audit log can be kept longer than the default. Sync history and trash can only be shortened.
- Recent requests are never kept longer than 90 days, whatever the run history setting.
- Open access reviews are never removed.
Preview first
Preview next purge counts, per category, what the next purge would remove with the values in the form, saved or not, and the cutoff date. Save policy runs the same count and asks for confirmation when rows would go. There's no undo for a purge, so the preview is the moment to notice that "7 days of run history" would also delete last month's release evidence.
When it applies
- The audit log period applies right away: the hourly audit purge and the audit log list follow it.
- The other categories are applied by a background purge that runs once a day per organization.
The card shows who saved the policy and when, what the last purge removed, and roughly when the next one runs. Saving a policy is itself an audit event, with the values.
Choosing values
| Goal | Setting |
|---|---|
| SOC 2 / ISO 27001 evidence for a yearly audit | audit log: at least 1 year, often 2 to 3 |
| Regulated industries | audit log: what your regulator requires, up to 7 years |
| Failed responses may hold personal data | run history: as short as your debugging needs, for example 90 days |
| Release evidence | run history: as long as you keep release records |
| Mistakes recovered quickly or not at all | trash: shorter than 30 days |
Failed requests in a saved run keep up to 2,000 characters of the response body. If your staging data is real customer data, that's personal data with a retention period of its own.
Exports before purges
A policy removes history inside Requestarium. If you need it longer somewhere else, export it first: stream the audit log to a SIEM, and use organization export for a full copy.
After a downgrade
Without the Enterprise plan the policy can't be changed and isn't applied: the audit log goes back to 90 days, and nothing else is removed. The saved policy stays and applies again after an upgrade.