1. Home
  2. Knowledge Base
  3. Installation and Administration
  4. Audit Data Cleanup / Auto Flush
  1. Home
  2. Knowledge Base
  3. Audit
  4. Audit Data Cleanup / Auto Flush

Audit Data Cleanup / Auto Flush

DCM Audit can generate a lot of data over time. Some of the data should be kept for a longer time to follow up compliance trends and other reports while some other data is more useful only short term.

DCM application comes with predefined Auto Flush records that should be used for data clean-up. By default, these records are inactive, but we recommend activating data clean up routines during the first year of DCM usage.

Default Auto Flush Records

#TablenameMatchfieldAge in secondsActive
1x_jugr_dcm_audit_resultssys_created_on31,536,000false
2x_jugr_dcm_m2m_uam_arsys_created_on2,592,000false
3x_jugr_dcm_m2m_uam_arsys_created_on2,592,000false
4x_jugr_dcm_audit_instancesys_created_on94,608,000false
5x_jugr_dcm_unique_audit_messagesys_updated_on31,536,000false
  1. Audit Results (x_jugr_dcm_audit_results) are used for trends on an Audited Record level. These records should be deleted after a year, but can be deleted sooner if the number of Audit Results gets very high.
    • A general rule of thumb is that the number of Audit Results should be kept below 10 million.
  2. UAMs Related to Audit Results (x_jugr_dcm_m2m_uam_ar) are used to relate Unique Audit Messages to Audited Records to show more detailed trends on deviations and showing Unique Audit Messages in the Audit Results view.
    • Auto Flush records include two rules for these m2m records for historical reasons.
    • Currently, activating just the one that doesn’t have any conditions is enough.
    • If the total count on this table gets very high (more than 10M), then we recommend deleting these sooner.
  3. The second “UAMs Related to Audit Results” Auto flush record will delete relations to non-compliant Unique Audit Messages also
    • This rule is irrelevant when the rule without conditions is already active.
  4. Audit Instance (x_jugr_dcm_audit_instance) records will delete all related audit results and m2m records to UAMs also, so this is the easiest way to clean up old data, but the number of Audit Instances doesn’t usually get that high and enables reporting long-term trends if these are not deleted at all
    • We recommend deleting “UAMs Related to Audit Results” and “Audit Results” before deleting the Audit Instances.
    • Only delete these if you are sure you don’t need data compliance trends over a year-long period.
  5. Unique Audit Messages (x_jugr_dcm_unique_audit_message) records that have not been updated for a long time. DCM Audit keeps updating the unique audit messages, as long as they are still valid. This auto-flush rule deletes expired and fixed messages that have not been updated in a while (age in seconds).

Days in seconds

SecondsDays
31 536 000365
15 552 000180
7 776 00090
2 592 00030
Was this article helpful?

Related Articles