cancel
Showing results for 
Search instead for 
Did you mean: 

show_audit.ftl showing no results

jasonschroeder
Champ in-the-making
Champ in-the-making
I have an installation of Alfresco Community v4.0.0 (4003) schema 5025.

I enabled access auditing through global properties by adding.
I am able to view some audit data from Audit Dashlet.  However when I try and use show_audit.ftl in preview templates for localhost:8080/alfresco on specific document, comes up blank.  Anyone have tis problem?



# Enable audit in general
audit.enabled=true

# Enable the alfresco-access audit application
audit.alfresco-access.enabled=true

# Enable the auditing of sub-actions. Normally disabled as these values are
# not normally needed by audit configurations, but may be useful to
# developers
#audit.alfresco-access.sub-actions.enabled=true
2 REPLIES 2

melttech
Champ in-the-making
Champ in-the-making
Anyone know how to solve this. I have the same issue. I tried method mentionned by jason and this http://aboutalfresco.blogspot.com/2009/12/audit-configuration-in-alfresco.html but still no luck. Im using Alfresco Community - v4.2.0 (r45401). Anyone please help.

I can see the audit log in catalina.out but when i tried to view it under show_audit.ftl template. It shows blank result.

melttech
Champ in-the-making
Champ in-the-making
This is wicked! All i have to do is enable audit config in REPOSITORY.PROPERTIES and NOT alfresco-global.properties. It is weird why all the docs saying to change alfreso-flobal.properties (doesnt work for me).

This is how i make show_audit.ftl template to show its value in Alfresco Community - v4.2.0 (r45401):

1- uncomment audit.enabled=true and audit.alfresco-access.enabled=true in repository.properties
2- add audit.useNewConfig=false in repository.properties
3- create audit-log4j.properties in /shared/classes/alfresco/extension and add log4j.logger.org.alfresco.repo.audit.access.AccessAuditor=DEBUG in the file
4- restart tomcat
5- Verify alfresco-access in enable with: curl -u admin:admin "http://192.168.100.152:8080/alfresco/service/api/audit/control"
{
         "name": "alfresco-access",
         "path" : "/alfresco-access",
         "enabled" : true
      }
should appear with enable=true. This means you started the auditing correctly.
6- login to alfresco and do activity (eg: add content). Then More actions>View details>Custom view Modify>show_audit.ftl

The template should show content audit.

Cheers,