Expand my Community achievements bar.

SOLVED

Audit purge in 5.6.1

Avatar

Level 9

Hi All,

I installed the package provided in https://helpx.adobe.com/experience-manager/kb/howtopurgewf.html to try out and purge audit/workflow related data.

The UI is as seen in the screenshot after package is installed.

How do I control this, say

-Delete audit details beyond a certain date, for certain location etc.

- Delete workflows beyond a certain date etc. 

Any thoughts on this will be helpful.

1 Accepted Solution

Avatar

Correct answer by
Employee

After you install the package, you will have two configurations called "Purge Watch Service" 

http://<localhost>/system/console/configMgr/AuditPurgeService

http://<localhost>/system/console/configMgr/com.adobe.daycare.workflow.purge.WorkflowPurgeWatchService

You can configure how long you want to keep audit data and which state of workflows to purge. To initiate the cleanup task, create ca file called cleanAudit or cleanWorkflow in the same diectory as you quickstart file(Usually parent directory of crx-quickstart). You can create a cron job to do this on a maintenance schedule.

For workflows, you can use the OOTB purge: https://<localhost>/system/console/configMgr/com.adobe.granite.workflow.purge.Scheduler as described here: https://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-admin.html#Regular Purging of Workflow Instances

View solution in original post

3 Replies

Avatar

Level 4

The bundle with source files are provided in the package.

/apps/daycare/com.adobe.daycare.workflow.purge/src/main/java/com/adobe/daycare/audit/purge/impl/AuditPurgeServiceImpl.java etc

You can add your logic and rebuild the bundle ( eg, make AUDIT_ROOT_PATH configurable as per your need.

Avatar

Correct answer by
Employee

After you install the package, you will have two configurations called "Purge Watch Service" 

http://<localhost>/system/console/configMgr/AuditPurgeService

http://<localhost>/system/console/configMgr/com.adobe.daycare.workflow.purge.WorkflowPurgeWatchService

You can configure how long you want to keep audit data and which state of workflows to purge. To initiate the cleanup task, create ca file called cleanAudit or cleanWorkflow in the same diectory as you quickstart file(Usually parent directory of crx-quickstart). You can create a cron job to do this on a maintenance schedule.

For workflows, you can use the OOTB purge: https://<localhost>/system/console/configMgr/com.adobe.granite.workflow.purge.Scheduler as described here: https://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-admin.html#Regular Purging of Workflow Instances

Avatar

Level 9

Hi,

Thanks a lot for your reply.