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.
There are three types of Audit Log Purge options:
Each can be configured by creating rules in the AEM Web Console. After they have been configured, you can trigger them by going to Tools - Operations - Maintenance - Weekly Maintenance Window and running the AuditLog Maintenance Task.
Follow these steps in order to configure Audit Log Purging:
Go to the Web Console Admin by pointing your browser to http://localhost:4502/system/console/configMgr/
Search for an item called Pages audit Log Purge rule and click it.
Next, configure the purge scheduler according to your requirements. The available options are:
The content path only applies to children of the /var/audit/com.day.cq.wcm.core.page
node in the repository.
Save the rule.
The rule you just created needs to be exposed in the Operations Dashboard in order for it to be executed. In order to do this, go Tools - Operations - Maintenance from the AEM Welcome screen.
Press the Weekly Maintenance Window card.
You will find the maintenance task already present under the AuditLog Maintenance Task card.
You can either inspect the date of the next execution, configure it, or manually executing it by pressing the play button.
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.5, 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.
Navigate to the System Console at https://<serveraddress>:<serverport>/system/console/configMgr
Search for DAM audit Log Purge rule and click the result.
In the next window, configure your rule accordingly. The options are:
Click Save to save your configuration
Navigate to the System Console at https://<serveraddress>:<serverport>/system/console/configMgr
Search for Replication audit Log Purge Scheduler and click on the result
In the next window, configure your rule accordingly. The options are:
Click Save to save your configuration.