AnsweredAssumed Answered

How to get client IP address for audit logs?

Question asked by andreramos on May 20, 2019
Latest reply on Jun 18, 2019 by afaust

I defined some custom audit logs, with the purpose of having more information than the default ones.
One of those extra information would be the client IP address.

 

From what I checked:

  • In the database (alf_audit_* tables) it is not stored the client IP address.
  • The available services like 'authorizationService' do not provide this information.
  • The util class org.alfresco.util.HttpClientHelper (getHttpClient method) seemed it could actually be helpful, but all of its fields  are null.

 

How can I programmatically get the client IP address?

Outcomes