Alfresco 3.3 audit Trail configuration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2010 11:45 PM
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
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
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2010 10:55 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2010 05:04 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2010 08:10 AM
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 !!!
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 !!!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2010 05:35 AM
Well, I tried.
ops:
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:

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:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2010 05:06 AM
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
Regards,
uptime
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

Regards,
uptime
