Custom cq:AuditEvent index not deployed in Adobe Experience Manager as a Cloud Service
In Adobe Experience Manager as a Cloud Service, a custom Oak index targeting cq:AuditEvent appears in the local SDK but doesn’t appear in the Cloud Service environment after deployment. To fix this issue, follow the required naming convention for fully custom indexes.
Description description
Environment
Adobe Experience Manager as a Cloud Service (all versions)
Issue/Symptoms
- A custom Oak index targeting
cq:AuditEvent, such as/var/auditor/var/audit/com.day.cq.replication, is packaged and deployed through Cloud Manager. - The index node appears in
/oak:indexon the local AEM as a Cloud Service SDK but doesn’t appear in/oak:indexon the Cloud Service environment after deployment. - Other custom content indexes from the same package are deployed and work as expected.
- The custom index is defined as a standalone
oak:QueryIndexDefinitionin a content package, registered infilter.xml, and matches the ACS AEM Commons “Audit Log Search” documentation specification. - The issue affects indexes targeting
cq:AuditEventunder/var/audit. - No error is reported during deployment, but the index is missing in the Cloud Service environment.
Cause
Cloud Manager ignores custom Oak indexes that don’t follow the required naming convention for fully custom indexes. As a result, the index isn’t deployed to AEM as a Cloud Service environments, even though it appears in local SDKs.
Resolution resolution
Follow the steps below to resolve the issue.
-
Review the custom index name:
- Ensure your custom Oak index name follows the required AEM as a Cloud Service naming convention for fully custom indexes.
- The format should be
.<index-name>-custom-<number>. - Example:
exampleReplicationAuditLucene-1-custom-1
-
Update the index definition:
- Rename your index node in the content package to match the required naming convention.
- Update all references in your package files, such as
filter.xmland node definitions.
-
Redeploy via Cloud Manager:
- Deploy the updated package through your standard Cloud Manager pipeline.
- After deployment, verify that the custom index appears in
/oak:indexon the Cloud Service environment.
-
Confirm that queries against
/var/auditor/var/audit/com.day.cq.replicationnow use the custom index as intended.