Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write redcap_log_event purging tools #125

Open
pbchase opened this issue Jul 7, 2023 · 3 comments
Open

Write redcap_log_event purging tools #125

pbchase opened this issue Jul 7, 2023 · 3 comments

Comments

@pbchase
Copy link
Contributor

pbchase commented Jul 7, 2023

The redcap_log_event* tables could use some management tools.

These threads in the REDCap community could be helpful

sue.lowry Deactivated commented • 5 years, 3 months ago (2018-03-27 14:38)
One thing that I've started to look into is purging out most of the records in the redcap_log_events and redcap_log_view table for projects that have already been deleted at least a year ago, but leaving the redcap_log_events records that are for the pages 'ProjectGeneral/create_project.php','ProjectGeneral/notifications.php', 'ProjectGeneral/delete_project.php' and 'cron.php', which leaves the history of when it was created, set to be deleted and actually deleted.

vincent.benoit2 commented • 1 year, 7 months ago (2021-11-26 04:45)
It would be useful to be able to purge log for completed projets, with a download all project's logs option so this information can be stored on a NAS if an audit is required for the project afterwards.

It's unclear to me how the log migration work relates to the changes required to fix database tables that impeded Unicode support in older REDCap installations.

@pbchase
Copy link
Contributor Author

pbchase commented Jul 9, 2023

Related to this, REDCap might ask that older tables be altered to set ROW_FORMAT=DYNAMIC. This post explains that each such table will be copied in the process: Some database tables need to be modified - RECOMMENDED This temporarily doubles their disk space usage until the old copy is purged.

@pbchase
Copy link
Contributor Author

pbchase commented Jul 9, 2023

There's a discussion of data preservation rules and the need to preserve log data for 7 years at How can we clear out large database tables logs?.

@pbchase
Copy link
Contributor Author

pbchase commented Jul 9, 2023

There's a discussion of the ramifications of projects with a very large number of log rows jamming up the pre-population of the users filter in the REDCap Logging query UI. There is a discussion about the value of defragging and rebuilding a log table with ALTER TABLE ``redcap_log_event7`` ENGINE = InnoDB; See Logging page times out even after moving all log entries to redcap_log_event7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant