Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
454 stars 600 forks source link

AEM ( Adobe experience Manager ) AEM Tools > ACS commons > Audit log search isn't giving any Results. #3424

Closed debdip04 closed 1 month ago

debdip04 commented 1 month ago

Required Information

AEM ( Adobe experience Manager )

AEM Tools > ACS commons > Audit log search isn't giving any Results.

Expected Behavior

AEM Tools > ACS commons > Audit log search should be giving any Results.

Actual Behavior

AEM Tools > ACS commons > Audit log search isn't giving any Results._

Steps to Reproduce

AEM Tools > ACS commons > Audit log

YegorKozlov commented 1 month ago

Audit search requires an Oak index to search, see https://adobe-consulting-services.github.io/acs-aem-commons/features/audit-log-search/index.html#Installing-Oak-Index, for example:

{
  "jcr:primaryType": "oak:QueryIndexDefinition",
  "compatVersion": 2,
  "includedPaths": "/var/audit",
  "seed": -172414558877055,
  "type": "lucene",
  "async": "async",
  "evaluatePathRestrictions": true,
  "reindex": false,
  "reindexCount": 9,
  "indexRules": {
    "jcr:primaryType": "nt:unstructured",
    "cq:AuditEvent": {
      "jcr:primaryType": "nt:unstructured",
      "properties": {
        "jcr:primaryType": "nt:unstructured",
        "cqType": {
          "jcr:primaryType": "nt:unstructured",
          "propertyIndex": true,
          "name": "cq:type"
        },
        "cqPath": {
          "jcr:primaryType": "nt:unstructured",
          "propertyIndex": true,
          "name": "cq:path"
        },
        "cqTime": {
          "jcr:primaryType": "nt:unstructured",
          "propertyIndex": true,
          "name": "cq:time",
          "type": "Date"
        },
        "cqUserId": {
          "jcr:primaryType": "nt:unstructured",
          "propertyIndex": true,
          "name": "cq:userid"
        }
      }
    }
  }
}