Purpose
DCM Audit creates a lot of record. Each details in the blueprint will generate Audit Messages when audit is being run against the root records.
Most users are not that interested about the Compliant messages and all trends and numeric statistics about the audits, can be reported without these messages also. So, it makes sense to clean up the Compliant messages first. Even right after the audit has completed.
Info | ||
---|---|---|
| ||
This job can be used as an example to clean up other audit messages too. Keeping huge volumes (over a million) of audit messages will impact the reporting performance and load times for dashboards. |
Installation and Setup
Download following update set and commit it to a Service instance which has DCM already installed:
View file | ||||
---|---|---|---|---|
|
After commit, go to Scheduled Jobs module and open the DCM Audit Message Cleaner - Compliant Messages job.
From the Job record you can define when to run to job or keep it under manual execution.
This Scheduled job script is using dcm.addon.delete.audit.messages.older.than.days system property to define how old messages will be deleted. This property can be found in DCM - Data Content Manager application under Setup → Properties.
Info | ||
---|---|---|
| ||
This job may not actually delete anything before system administrator has given delete permission to all application scopes for the DCM Audit Messages table. |