Expand my Community achievements bar.

SOLVED

Fetch report for all the authoring changes made to a particular page in AEM for a selected date range in AEM 6.5

Avatar

Level 5

My goal is to write a custom code/query which will fetch and show the components that were changed/modified and if any new component has been added or if an existing component has been deleted for a certain page for a selected date range. Any ideas/suggestions with any possible code snippet is highly appreciated. Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @arindam6600 

 

This feature is already available in ACS Commons audit log search - https://adobe-consulting-services.github.io/acs-aem-commons/features/audit-log-search/index.html

 

Have you already explored it and do let us know for any feedback or issue you might see with it.

 

Thanks

Narendra

View solution in original post

9 Replies

Avatar

Correct answer by
Community Advisor

Hi @arindam6600 

 

This feature is already available in ACS Commons audit log search - https://adobe-consulting-services.github.io/acs-aem-commons/features/audit-log-search/index.html

 

Have you already explored it and do let us know for any feedback or issue you might see with it.

 

Thanks

Narendra

Avatar

Level 5

I have already created an audit log oak index but still I see this when running the tool. All the properties are set to true.

arindam6600_0-1707150360687.png

arindam6600_1-1707150442210.pngarindam6600_2-1707150462648.png

 

 

Avatar

Community Advisor

Hi @arindam6600 

 

I had to make few updates to the index to make it work (main definition) - 

narendragandhi_0-1707160748066.png

 

(cq:path node)

narendragandhi_1-1707161024023.png

 

The index definition might need to be updated to include additional properties being included in search. Below screenshot covers what a cq:AuditEvent looks like to show all fields -

 

narendragandhi_2-1707161209808.png

 

Can you try and confirm if it works for you.

Avatar

Level 5

Hi @narendragandhi - I modified the properties as per your recommendations but I still see the error.

main definition :

arindam6600_0-1707165110870.png

 

cq:path node

arindam6600_1-1707165148551.png

 

/var

arindam6600_0-1707165858668.png


For ease of understanding, I am uploading the package here : acs-aem-commons-audit-log-oak-index-4.8.6. Can you please modify this and send me over?

 

Avatar

Administrator

@arindam6600 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.



Kautuk Sahni

Avatar

Level 5

Hi @kautuk_sahni - I'm still facing issues after modifying the indexes and I've furnished those details in the comment above. Waiting for @narendragandhi's expertise to get this up and running. Thanks!

Avatar

Level 5

Hi @narendragandhi - I have encountered a unique issue wherein although the search runs fine and says success the logs don't appear. Any suggestions/advice on how to mitigate this?

arindam6600_0-1707326374590.png