AEM_How to monitor Replication agents


You can monitor your replication queues to detect when a queue is either down or blocked
  • all enabled queues should have the status idle or active, which indicate normal operation; 
  • No queues should be blocked, which is often a sign of problems on the receivers side.
  • if the size of the queue grows over time this can indicate a blocked queue.
To monitor a replication agent:
  1. a. Access the Tools tab in AEM.
  2. B. Click Replication.
  3. C. Double-click the link to agents for the appropriate environment (either the left or the right pane); for example Agents on author.
    The resulting window shows an overview of all your replication agents for the author environment, including their target and status.
  4. chlimage_1
    Here you can:
    • See whether the agent is enabled.
    • See the target of any replications.
    • See whether the replication queue is currently active (enabled).
    • See whether there are any items in the queue.
    • Refresh or Clear to update the display of queue entries; this helps you see items enter and leave the queue.
    • View Log to access the log of any actions by the replication agent.
    • Test Connection to the target instance.
    • Force Retry on any queue items if required.

Caution:
Do not use the "Test Connection" link for the Reverse Replication Outbox on a publish instance.
If a replication test is performed for an Outbox queue, any items that are older than the test replication will be re-processed with every reverse replication.
If such items already exist in a queue, they can be found with the following XPath JCR query and should be removed.
/jcr:root/var/replication/outbox//*[@cq:repActionType='TEST'] 

AEM_Types of Audit log

  1. 1. AEM WCM Audit records:
  • Audit records are held to provide a record of who did what and when.
  • Open a page.
  • From the sidekick you can select the tab with the lock icon, then double-click on Audit Log...
  • A new window will open showing the list of audit records for the current page.
    • Click OK when you want to close the window.

    2. AEM WCM Auditing records within the repository

    • Within the /var/audit folder, audit records are held according to the resource. 
    • You can drill down until you can see the individual records and the information they contain.
    • These entries hold the same information as shown when editing a page.

    3. OSGi Audit records from the Web Console

    • OSGi events also generate audit records which can be seen from the Configuration Status tab -> Log Files tab in the Adobe CQ Web Console:



    AEM_log Level 0 to level 3 meaning

    The log levels are as follows:
    0Fatal errorThe action has failed, and the installer cannot proceed.
    1ErrorThe action has failed. The installation proceeds, but a part of AEM WCM was not installed correctly and will not work.
    2WarningThe action has succeeded but encountered problems. AEM WCM may or may not work correctly.
    3InformationThe action has succeeded.