How to generate report for deleted content in AEM.

Avatar

Avatar
Validate 1
Level 1
arunaaems506124
Level 1

Like

1 like

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
arunaaems506124
Level 1

Like

1 like

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
Applaud 5
View profile
arunaaems506124
Level 1

18-05-2020

Hi All,

 

I need to create a report for deleted pages and assets. I have used acs-commons report builder tool to generate different kinds of reports in AEM, but I would need to generate report for deleted content also.

Any suggestions or help would really appreacited.

 

Thanks,

Aruna

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

18-05-2020

I am not sure if this is the best way , but one thing you can do is to listen to a deletion action and write the details to a log. If log is enough for your requirement . It might be process heavy as when you trigger a deletion in bulk , it might slow down the system . I am also curious to know of something better . Hope the community has some better answers 🙂 

Answers (3)

Answers (3)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

19-05-2020

If you have enabled AEM to save audit data, you can query the nodes under "/var/audit/com.day.cq.wcm.core.page/content"

 

Nodetypes : cq:AuditEvent

Property: cq:type=PageDeleted

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

21-05-2020

@arunaaems506124 I guess https://adobe-consulting-services.github.io/acs-aem-commons/features/audit-log-search/index.html this might help you in your requirement. It will give you a list of the deleted pages from audit log as below

 

audit-log.JPGaudit-details.JPG

 

 

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

18-05-2020

Since you are looking for some author friendly report, how about saving the resource details to a node every time a deletion happens ? Later you can fetch the values from this node when you need it