We have configured the End User Experience Monitoring for our application but in browser snapshots we are getting the IP address of Load-Balancer instead of clients IP address.
Our Application team is using following code to log the client IP address :
public String getRemoteAddress(HttpServletRequest request){
String remoteAddress = "127.0.0.1";
if (request.getHeader("xff") == null) {
remoteAddress=(String)request.getHeader("iv-remote-address");
}
else
{
remoteAddress=(String)request.getHeader("xff");
}
return remoteAddress;
}
Is there any way to get clients IP address in Browser Snapshot using above code or any other workaround is available for the same.
Hi ,
I do not locate any settings that could gather header details for EUEM configuraiton feature, unless i miss any settings, but can you check if using any of the feature helps here:
The below link is not for EUM browser snapshots but to get details of particular header if the target eum page is associated to any discovered BT and see if defininng HTTP collectors on header name will help to get target details part of business transactions in UI snapshots ?
Regards,
Arun
Hi Arun,
Thanks for your reply,
After going through the document provided, I understood that AppDynamics captures the IP address of client from X-Forwarded-For header. So I tried to get client IP using X-Forwarded-For header but it is returning NULL.
Will you please help me to resolve this.
Reagrds,
Prathamesh
Hi, did you got chance to check your update on help ticket for which support requested you to refer doc link on this: https://docs.appdynamics.com/display/PRO39/Add+Custom+User+Data+to+a+Browser+Snapshot
Hi Arun,
Thanks for your help.
I'll try this and let you know.
Regards,
Prathamesh