Audit purge in 5.6.1 | Community
Skip to main content
Level 9
October 16, 2015
Solved

Audit purge in 5.6.1

  • October 16, 2015
  • 3 replies
  • 1368 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

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

3 replies

Level 4
October 16, 2015

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.

ogillAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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

askdctmAuthor
Level 9
October 16, 2015

Hi,

Thanks a lot for your reply.