cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.3 audit Trail configuration

uptime365
Champ in-the-making
Champ in-the-making
Hi all,

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

<Audit xmlns="http://www.alfresco.org/model/audit/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" enabled="true" auditInternal="true" mode="all">

A conf file /opt/alfresco/tomcat/shared/classes/alfresco/extension/audit/custom-audit-services-context.xml with content as below has also been created.

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
<!– The configuration of the audit model –>

<bean id="auditConfiguration" class="org.alfresco.repo.audit.AuditConfigurationImpl">
<property name="config">
<value>alfresco/extension/audit/auditConfig.xml</value>
</property>
</bean>
</beans>

Can someone please let me know where i'm going wrong.

Thanks
Uptime
5 REPLIES 5

uptime365
Champ in-the-making
Champ in-the-making
Can someone help please..

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.

Thanks,
Uptime

uptime365
Champ in-the-making
Champ in-the-making
Hi talija83,

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.

Thanks !!!

talija83
Champ in-the-making
Champ in-the-making
Well, I tried.  Smiley Surprisedops:

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:

uptime365
Champ in-the-making
Champ in-the-making
Hi all,

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

Hope it helps someone Smiley Happy

Regards,
uptime