I am getting an error as below with my alfresco after I enabled audit trail
alfresco/bootstrap-context.xml]: Invocation of init method failed; nested exception is org.alfresco.repo.audit.model.AuditModelException: 08160001 Failed to load audit model: file:/opt/alfresco/tomcat/shared/classes/alfresco/extension/audit/auditConfig.xml
I have the below enabled in /opt/alfresco/tomcat/shared/classes/alfresco-global.properties
audit.enabled=true audit.useNewConfig=true
I have copied the /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/auditConfig.xml to the directory /opt/alfresco/tomcat/shared/classes/alfresco/extension/audit and have changed the line as below
A conf file /opt/alfresco/tomcat/shared/classes/alfresco/extension/audit/custom-audit-services-context.xml with content as below has also been created.
I couldn't also find any decent documentation for alfresco 3.3 and audit configuration, If someone who has done this can provide a short description, it can help me as well as others.
I have tried your method but it is not working for alfresco 3.3. I do have found a solution I think, I will post it as soon as I'm sure that It is working properly.
If your solution turns out to be working the way it should, could you please post it? There seems to be a lot of people who can't configure audit the proper way, myself included. :wink:
I was able to enable old audit mechanism with the below configuration
on alfresco-global.properties audit.enabled=true audit.useNewConfig=false
turn all false values to true on auditConfig.xml sed -i "s/false/true/g" – /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/auditConfig.xml