AppD Archive

Getting Client IP Address in Browser Snapshot

CommunityUser
Splunk Employee
Splunk Employee

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.

0 Karma

Arun_Dasetty
Super Champion

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:

https://docs.appdynamics.com/display/PRO40/Use+a+Custom+Geo+Server+For+Web+EUEM#UseaCustomGeoServerF...

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 ?

https://docs.appdynamics.com/display/PRO40/Configure+Data+Collectors#ConfigureDataCollectors-configu...

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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

0 Karma

Arun_Dasetty
Super Champion

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

Thanks for your help.

I'll try this and let you know.

Regards,

Prathamesh

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...