Is there a way to get the replication history of the assets in aemaacs? | Community
Skip to main content
Level 2
July 21, 2026
Question

Is there a way to get the replication history of the assets in aemaacs?

  • July 21, 2026
  • 3 replies
  • 35 views

Hi,

There was a task to publish the assets after property update. By mistake I published the assets that were deactivated before. Is it possible to get the list of assets that were deactivated before and activated now due to my automation. Does it store somewhere. Please help me if there’s any solution for this?

Thanks

3 replies

rk_pandian
Level 4
July 21, 2026

Hi ​@khn, there is a not-so-easy way. AEM maintains the activate and deactivate history of assets under /var/audit/com.day.cq.replication/content/dam/<project> folder. If your audit logs are not purged, then you can give a try.

For every publish and unpublish action, AEM creates a node under the respective folder and one node will have cq:type as Activate and the other will have as Deactivate. Both these nodes will point to the same asset path. 

You can write a groovy script to find all these nodes and check if there is an Deactivate action preceding the Activate action. There is also a timestamp property which you can use to sort the results. If you find a matching node, then thats a possible Asset to deactivate. Please check the presence of audit logs and LOG every finding before deactivating them.

Good luck!

 

Regards,

Ramkumar

khnAuthor
Level 2
July 22, 2026

Hi ​@rk_pandian , Thanks for the response. I tried same I was able to get few assets which was deactivated. but not all I guess. Is there a way in logs where I can check while activating the deactivated asset. Is there any specific log that gets added?

rk_pandian
Level 4
July 22, 2026

@khn I think there is no OOTB way to achieve this.. but this could be another way to tackle your problem:

Since you need to find the deactivated assets and IF they have replaced by other activated assets in the page, you can find the references of each asset and deactivate the unused assets safely. Referencing unpublished asset will create a broken image anyway, so I hope everything was replaced.

To quickly find the references, you can write a utility consuming the below URL to find if the asset has been referenced. Unfortunately I didn’t find any OOTB way to achieve this:

http://localhost:4502/bin/wcm/references.json?path=/content/dam/image1.jpg

 

Please check in your local once.

 

Regards,

Ramkumar

Shashi_Mulugu
Community Advisor
Community Advisor
July 23, 2026

Hi ​@khn ,

Do you know when these assets my got deactivated? If it is recent past and you presev logs for those many days.. you can search your author logs with below pattern.

 

com.day.cq.replication.Agent.* Replication (Deactivate) of /content/dam/* successful

 

 

That's why its always recommended to move all deactivated assets to an archive folder so that they never interfere with your BAU activities.