cancel
Showing results for 
Search instead for 
Did you mean: 

Auditing in 3.4b

flopez
Champ in-the-making
Champ in-the-making
Hi!

We had activated and used some of the Auditing services provided for Alfresco in 3.3g and below. The Wiki for the new Audit mechanism described in http://wiki.alfresco.com/wiki/Auditing_%28from_V3.4%29 mentions that pretty much all changed, may be due to our lack of knowledge, but we have found the Wiki hard to follow, and we have a couple of specific questions we would hope someone can answer, our work is currently stuck because of this, help would be gladly appreciated.

1. Is adding the line audit.enabled=true this to the alfresco-global.properties file enough to activate full auditing?
2. Where do we add this line log4j.logger.org.alfresco.repo.audit.inbound=DEBUG ? wiki doensn't mention the file.
3. When activated, all auditing information is stored in the tables alf_audit_model,  alf_audit_application alf_audit_entry and alf_prop_root ? (we aren't getting any information recorded here on 3.4) alf_activity_feed is ipart of this set of tables?
4. What mechanisms are available to read and display this information in Share? (we've seen templates for Explorer but not for Share) the way to construct such mechanism is webscripts or plan sql?
5. From Java, the way on accesing this audit information is the use of the API "AuditService - AuditServiceImpl"? if so, are there examples of this?

We apologize if our questions seems trivial and show up our lack o understanding of the Alfresco architectrure which we are learning, but we need help on continuing our work with understanding and activating this Auditing available in 3.4.

Thanks.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
R.E.  point 1, no setting audit.enabled is not enough to turn on auditing.   You also need to configure what is audited.    There's an example provided to get you started.
http://wiki.alfresco.com/wiki/Auditing_%28from_V3.4%29#Worked_Examples

R.E. point 2, you would add that line to your debug configuration file or via JMX.    I use a file called dev-log4.properties that lives in <Tomcat Home>/shared/classes/alfresco.extension.

derek
Star Contributor
Star Contributor
The first thing to do is to work through all the examples on the Wiki page.
As Mark pointed out, you put Log4J settings in log4j.properties or a log4j properties file extension.
Once you've gone through the Wiki examples, you should have a better idea of the APIs available.  In the old audit mechanism, there were no Alfresco-supplied APIs to query the audit data - hand-cranked SQL was required.  Now, the WebScript APIs provide that functionality and hand-cranked SQL is out.  Of course, you can use the AuditService Java API as well.