Audit Log Maintenance in AEM 6

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:
  1. Page Audit Log Purging
  2. DAM Audit Log Purging
  3. Replication Audit Log Purging
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.

Configure Page Audit Log Purging

Follow these steps in order to configure Audit Log Purging:
  1. Go to the Web Console Admin by pointing your browser to http://localhost:4502/system/console/configMgr/
  2. Search for an item called Pages audit Log Purge rule and click it.
    chlimage_1
  3. Next, configure the purge scheduler according to your requirements. The available options are:
    • Rule name: the name of the audit policy rule;
    • 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;
    • Audit log type: the type of audit log that should be purged.
    Note:
    The content path only applies to children of the /var/audit/com.day.cq.wcm.core.page node in the repository.
  4. Save the rule.
  5. 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.
  6. Press the Weekly Maintenance Window card.
  7. You will find the maintenance task already present under the AuditLog Maintenance Task card.
    chlimage_1
  8. 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.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.
Note:
To stop the maintenance task means to suspend its execution without losing track of the job already in progress.

Configure DAM Audit Log Purging

  1. Navigate to the System Console at http://serveraddress:serverport/system/console/configMgr
  2. Search for DAM audit Log Purge rule and click the result.
  3. In the next window, configure your rule accordingly. The options are:
    • Rule name: the name of the audit policy rule;
    • 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
    • Audit Log Dam event types: the types of DAM audit events that should be purged.
  4. Click Save to save your configuration

Configure Replication Audit Log Purging

  1. Navigate to the System Console at http://serveraddress:serverport/system/console/configMgr
  2. Search for Replication audit Log Purge Scheduler and click on the result
  3. In the next window, configure your rule accordingly. The options are:
    • Rule name: the name of the audit policy rule
    • 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
    • Audit log Replication event types: the types of Replication audit events that should be purged
  4. Click Save to save your configuration.

4 comments:

  1. Hi,

    Does AEM 6.2 support DAM audit log purge?
    I did not find any OOTB config for the same as mentioned in your post neither in Adobe's documentation.

    Regards,
    Prateek

    ReplyDelete
  2. Really very great information for that post, am amazed and then more new information are get after refer that post. I like that post.
    Asset Management Software
    Fixed Asset Management Software
    Asset Tracking Software
    Asset Management System
    Asset Management Software Dubai

    ReplyDelete
  3. the info you have provided in this blog is very nice, appreciable.
    if you required any info regarding, Income tax returns and GST Filings, please visit

    ReplyDelete