Hi Team,
What is the process/steps to enable auditing on /var/commerce/products path. Request you to provide the inputs.
Regards,
Kalyan
Solved! Go to Solution.
Views
Replies
Total Likes
You can write an JCR/Sling event listener for node add/modify and inside that you can check the condition and create event logs
AuditLogEntry auditLogEntry = new AuditLogEntry(node.EVENT_TOPIC, node.getModificationDate(), node.getUserId(), node.getPath(), "Node updated", node.getEventProperties()); entries.add(auditLogEntry);
Hi,
Please check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-audit-log-type-brea...
Thanks Arun for your Reply.
The link that you have provided is for enabling the audit for page is there any example how we can implement for /var/commerce/products .
Regards,
Kalyan
You can write an JCR/Sling event listener for node add/modify and inside that you can check the condition and create event logs
AuditLogEntry auditLogEntry = new AuditLogEntry(node.EVENT_TOPIC, node.getModificationDate(), node.getUserId(), node.getPath(), "Node updated", node.getEventProperties()); entries.add(auditLogEntry);
@ns6 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes