cancel
Showing results for 
Search instead for 
Did you mean: 

Audit doesn't work

harvey
Champ in-the-making
Champ in-the-making
Hi all!

i'm using Alfresco 4.0.e and i've enabled the auditing, i've modified the file "alfresco-global.properties" at "…/tomcat/shared/classes/", and restarted the server several times and when i visit the url: "http://localhost:8081/alfresco/service/api/audit/control" the answer is that expected:


{
   "enabled" : true,
   "applications":
   [
      {
         "name": "Alfresco Tagging Service",
         "path" : "/tagging",
         "enabled" : true
      }
         ,
      {
         "name": "CMISChangeLog",
         "path" : "/CMISChangeLog",
         "enabled" : true
      }
         ,
      {
         "name": "alfresco-access",
         "path" : "/alfresco-access",
         "enabled" : true
      }
        
   ]
}


after i log in and log out from localhost:8081/alfresco and localhost:8081/share, and when i visit this page: "http://localhost:8081/alfresco/service/api/audit/query/AuditExampleLogin1" and appears:


{
   "count":0,
   "entries":
   [
   ]
}


can someone help me? i really need it

thanks in advance.
2 REPLIES 2

romschn
Star Collaborator
Star Collaborator
It appears that you have not enabled audit for AuditExampleLogin1. Enable it by removing .sample from the filename at alfresco/extensions/audit/alfresco-audit-example-login.xml.sample and restart the server.
After that hit http://localhost:8081/alfresco/service/api/audit/control, it should display
{
         "name": "AuditExampleLogin1",
         "path" : "/auditexamplelogin1",
         "enabled" : true
      }
in the response and then try hitting the URL - http://localhost:8081/alfresco/service/api/audit/query/AuditExampleLogin1

jennymarlon
Champ in-the-making
Champ in-the-making
My audit also didn't work because I made a mistake in "tagging" path of the code. But now after reading in this thread, I applied the correct scenario on the code and now it is working.