Viewing AEM Audit Log without ACS CommonsViewing AEM Audit Log without ACS Commons

Tech Tips

8 min read

Two hardcover books stacked on a blue surface, one pink and one light blue.

Tags

#AEM

#AEM Logs

#AEM Tips

#Digital Marketing Technology

Share

AEM Audit Log is a convenient way to check who modified what and when within AEM pages or assets.

‍

ACS Commons provides an Audit Log Search tool which allows users to do an AEM Audit Log search and see what properties of a page (and enclosed components) have been altered.

‍

But what if you don’t have access to ACS Commons in your Production environment or it doesn’t work as expected (see Pic. 1 below), but you still need to know what has been changed on a particular page? This article will show you how to find out in two steps:

Adobe Experience Manager audit log search page showing error message about unable to search audit logs.
Pic. 1. An unknown error occurred in the Audit Log Search tool.

Step #1. Navigate to audit log events in CRXDE.

AEM Audit Log entries for pages are located under the:

‍

/var/audit/com.day.cq.wcm.core.page

‍

folder in the repository. An example for project ‘acme’ and page ‘testpage’ is in Pic. 2 below.

CRXDE Lite interface showing testpage directory and properties including cq:category, path, and cq:properties link.
Pic. 2. Audit logs for a test page inside ‘acme’ project’.

Log entries can also be found and sorted by date using the following SQL2 query (works in AEM 6.4 and older; AEM 6.5 returns an empty result set).

‍

SELECT * FROM [cq:AuditEvent] AS comp WHERE ISDESCENDANTNODE(comp, '/var/audit/com.day.cq.wcm.core.page/content/acme/country/us/en/testpage') order by comp.[cq:time]

‍

‍

Step #2. Deserialize a binary with modified properties.

‍

An AEM Audit Log entry contains information on what exactly was modified in a page and its enclosed components. A set of modified properties can be retrieved from the ‘cq:properties’ field.

‍

We need to click the ‘view’ link (in the purple oval in Pic. 2 above), download the binary, and run the following Java program:

‍

public class ChangedProps {
    public static void main(String[] args) throws Exception {
        File file = new File("C:UsersdenisDownloadscq_properties");
        InputStream is = new FileInputStream(file);
        ObjectInputStream ois = new ObjectInputStream(is);
        ois.readInt();
        while (ois.available() != -1) {
            try {
                Object obj = ois.readObject();
                if (obj instanceof HashSet) { //we found a hash set with modified properties
                    Set<string> propertiesSet = (Set<string>) obj;
                    for (String property : propertiesSet) {
                        System.out.println(property);
                    }
                    break; //no need to parse the rest
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        is.close();
    }
}
</string></string>

‍

The code is based on Audit Log Search Servlet from ACS Commons, so the program will print a list of modified properties similar to the console:

‍

jcr:content/parsys/testComponent/cq:lastRolledoutBy
jcr:content/parsys/testComponent/description
jcr:content/parsys/testComponent/jcr:lastModified

‍

Now we know which particular properties were modified and captured as an AEM Audit Log Event!

‍

Author: Denis Glushkov

‍

Resource Hub

Our Latest Stories & Industry Insights

View Resource Hub

Rogério Pedro on Empathy, Collaboration, and Career Growth

5 min read

November 2, 2026

Verification Engineering: Code Is Cheap, Proof Is The Product

12 min read

November 2, 2026

Women in Exadel: Let's Talk About Leadership, AI, and the Human Side of Technology

10 min read

October 29, 2026

Legacy Modernization With AI Agents: Build the Test Baseline First

5 min read

October 28, 2026

Building a Bidirectional IoT System

7 min read

October 27, 2026

5 Things Senior Engineers Get Wrong About AI

5 min read

October 26, 2026
Two people sitting at a table with a laptop.

Let’s make your next project faster, safer, smarter.

Get In Touch