question

Wai C. avatar image
Wai C. asked ·

Overhead of capture client IP as request attribute

From what I read on the forum for past few months, it seems like right now the only workaround to capture client IP like we have in AppMon, is using request attribute.


If any fellow community member already did that, can you let me know roughly the overhead after you do so? Does it feels like the dashboard of Dynatrace is loading much slower after doing so?


I am about to do so (still thinking if there is any other better option to capture client IP), but would be curious to know the impact of it.


Best Regards,

Wai Keat

Dynatrace Managedadministrationrequest attributes
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Sebastian K. avatar image
Sebastian K. answered ·

I didn't face any issue with performance after adding this request Attribute. Dynatrace is well optimised so it's not so easy to break it with such thing. I have such configuration in bank production envrionment (just for a scale :)).

You're right, if you want look for IP address you will have to add request attribute. In other way this information is searchable only in RUM. Client IP addresses are available in details of purepaths but you can't search for them.

Rember that by default IP Addresses are masked in DT:

https://www.dynatrace.com/news/blog/data-privacy-enhancement-masking-internal-ip-addresses/

Sebastian

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hi Sebastian

I'm thinking if client IP is passing in Client-IP header not in x-forwarded-for or others, which specific datasource of request attributes should we use?

It is visible in PP metadata but where are they coming from? request headers, response header etc?

0 Likes 0 · ·

I've configured those headers mentioned in Dynatrace Web Application settings as Request header request attribute (I've added them all to single RA). It works for me.

Sebastian

0 Likes 0 · ·
1566289778472.png (54.8 KiB)

even for api calls, not Desktop Browsers?

0 Likes 0 · ·

For API calls I'm not sure, you have to trace such communication and check headers. Checking on my API's will not make sense because it depends of web server technology and couple more things. But try those headers here. Client IP always will be in request header, not response one. I assume that dynatrace is using only those headers for IP recognition so in general it should work.

Sebastian

0 Likes 0 · ·