10-15-2021 01:58 PM
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.
11-01-2021 04:48 PM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.