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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...