Sometimes in important application requires auditing data. Alfresco provides auditing facility based on nodes behavior and actions.
In most cases out of box audit configuration is enough to satisfy the requirements, but sometime it requires certain kind of data also needs to be audited. Like we are auditing our own custom content types.
I have tested below configuration in Alfresco version 4.0 EE
E.g. I have my own custom content type say "clm:contract" and I want to monitor changes inside this node whether its create/read/update/delete.
We are including following configuration in alfresco-global.properties file to achieve this.
Above configuration is enough to detect your custom content type clm:contract and auditing it.
If you want to see detailed log in console just write below configuration in log4j.properties file.
EnJOy !!
In most cases out of box audit configuration is enough to satisfy the requirements, but sometime it requires certain kind of data also needs to be audited. Like we are auditing our own custom content types.
I have tested below configuration in Alfresco version 4.0 EE
E.g. I have my own custom content type say "clm:contract" and I want to monitor changes inside this node whether its create/read/update/delete.
We are including following configuration in alfresco-global.properties file to achieve this.
audit.enabled=true audit.alfresco-access.enabled=true audit.alfresco-access.sub-actions.enabled=true
### Audit Filter ### audit.filter.alfresco-access.default.enabled=true audit.filter.alfresco-access.transaction.user=~System;~null;.* audit.filter.alfresco-access.transaction.type=cm:folder;cm:content;st:site;clm:contract audit.filter.alfresco-access.transaction.path=~/sys:archivedItem;~/ver:;.*
Above configuration is enough to detect your custom content type clm:contract and auditing it.
If you want to see detailed log in console just write below configuration in log4j.properties file.
### Audit Logs ### log4j.logger.org.alfresco.repo.audit.AuditComponentImpl=DEBUG log4j.logger.org.alfresco.repo.audit.inbound=DEBUG
EnJOy !!
Ghanshyam this will generate Audit logs how can we store that logs permanently ?
ReplyDeleteGreat article , I want to know how to audit event for content download.
ReplyDeleteYou r help is appreciated well in advance
Ghanshyam can you help using some example for auditing WiKi page is confusing me. Thanks
ReplyDeleteGood one !!!!
ReplyDelete@Anonymous : Audit logs are persisted in db but you require query to get those.
ReplyDeleteTry from http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Faudit-config.html
@Rajinder : Content READ operation is also consider as download event. so keep enable it in your config XML for auditing.
ReplyDelete@Karuna : what exactly you are looking for?
ReplyDeleteIf i need audit filter about sub-action.
ReplyDeleteHow to include configuration in alfresco-global.properties file ?
Example.
audit.filter.alfresco-access.transaction.sub-action.00.user=user1
But it does not work for me.
Sorry for my english.
Can you please elaborate little about your line
Deleteaudit.filter.alfresco-access.transaction.sub-action.00.user=user1
1) sub-action.00.user ??
alfresco-access is alfresco's out of box application configuration for audit. Did you make any changes in it?
How to track IP address of Client while auditing in alfresco?
ReplyDeleteThanks for sharing....Internal Audit Services
ReplyDelete