cancel
Showing results for 
Search instead for 
Did you mean: 

Extend Alfresco Audit logs

gregorio2501
Confirmed Champ
Confirmed Champ

Hi,

Is posible extend Audit Logs for getting client information, for example ip addres, web browser, etc (information send in http headers).

Maybe is posible extend AuditMethodInterceptor, if yes, how to?

Thanks in advance.

1 REPLY 1

jego
Star Contributor
Star Contributor

This will be a little bit more complicated as you need to create your own Auditapp. This information can be read via the incoming http requests and needs to be passed into the audit layer via a DataExtractor implementation.

Please refer to following documentation:

https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/audit-log/

Here is a sample extension:

https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/custom-audit-app-repo

I hope this helps.