AEM events that qualify for audit logging generate much archived data. This data can quickly grow over time due to replications, asset uploads and other system activities.
The Audit Log Maintenance includes several parts of functionality that enables the ability to automate audit log maintenance under specific policies.
It is implemented as a configurable weekly maintenance task and is accessible via the Operations Dashboard monitoring console.
For more information, refer to the Operations Dashboard Documentation.
Next, configure the purge scheduler according to your requirements. The available options are:
- Rule name: the name of the audit policy rule;
- Audit log type: the type of audit log that should be purged;
- Content path: the path of the content the rule will apply to.
- Minimum age: the time in days the audit logs need to be kept.
The content path only applies to children of the /var/audit/com.day.cq.wcm.core.page node in the repository.
In AEM 6.3, if the scheduled maintenance window closes before the Audit Log Purge task can complete, the task stops automatically. It will resume when the next maintenance window opens.
With AEM 6.4, you can manually stop a running Audit Log Purge Task by clicking the Stop icon. On the next execution the task will safely resume.
To stop the maintenance task means to suspend its execution without losing track of the job already in progress.