cancel
Showing results for 
Search instead for 
Did you mean: 

Activity log of users / Site Audit

akash251998
Star Contributor
Star Contributor

I am using Alfresco community version 5.2 .

i want to implement site audit so that activity log of users should be maintained and a detailed user-wise report for a selected time period may be made available.

How to achieve that is there any addon available or how to get the solution. Please help.

Regards

Akash D

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

Try setting following properties:

audit.enabled=true
audit.alfresco-access.enabled=true
audit.alfresco-access.sub-actions.enabled=false
audit.filter.alfresco-access.default.enabled=true
audit.filter.alfresco-access.default.user=~System;~null;.*
audit.filter.alfresco-access.transaction.user=~System;~null;.*
audit.filter.alfresco-access.transaction.type=cm:folder;cm:content;st:site;~cm:person
#For specific site
audit.filter.alfresco-access.default.path=/app:company_home/st:sites/cm:test-site/.* 
audit.filter.alfresco-access.transaction.path=/app:company_home/st:sites/cm:test-site/.*
#For all sites
audit.filter.alfresco-access.default.path=/app:company_home/st:sites/.* 
audit.filter.alfresco-access.transaction.path=/app:company_home/st:sites/.*

If audit info is not having anything specific such as site short name, site id etc. then you can also implement a custom audit application. Follow this documentation for implementing custom share site access application. 

https://docs.alfresco.com/5.2/references/dev-extension-points-audit.html

You should keep above configuration along with new custom audit applicaiton. 

Sample code is available here for custom audit application: https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/custom-audit-app-repo

~Abhinav
(ACSCE, AWS SAA, Azure Admin)