question

VishalGoyal-4290 avatar image
0 Votes"
VishalGoyal-4290 asked bharathn-msft answered

Wrong geolocation in application insights

We have integrated Azure Application insights with our bot built using Azure bot framework using node.JS and typescript. Everything looks fine and we can see telemetry data flowing in.

The city and country names are shown wrong for users. Please see attached.

We have no users outside India. We are using bot telemetry SDK in our codebase.

When i used the below URL, it shows my city name correctly, but same is not being captured in application insights.

https://www.maxmind.com/en/locate-my-ip-address

90626-geolocation.png


azure-monitorazure-bot-service
geolocation.png (44.2 KiB)
· 10
5 |1600 characters needed characters left characters exceeded

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

@VishalGoyal-4290 Thank you for reaching out with your query.

In case, if you haven't already reviewed the document explaining how geolocation lookup and IP address handling is done in Application Insights along with how to modify the default behavior, please check here.

Checking in to see for your current scenario are you running with default behavior of not collect IP addresses or any overriding done ?

Looking forward to hear from you to better understand your scenario, so that we can assist you accordingly.

0 Votes 0 ·

Thanks @bharathn-msft for response. We had started looking at these 2 articles since last week and making relevant code changes to see if this helps.

Wanted to know if someone has faced these issues, followed these documents and did it help fix the same ?

0 Votes 0 ·

@VishalGoyal-4290 My sincere apologies for delay in getting back to this thread. Following through the docs you would be able to override the default behavior and see the actual IP. However after further discussing with our team regarding the scenario you are getting into , it was called out that they did hear some feedback from couple of customers on this intermittent issue and they are already working with our 3rd party GeoLite2 from MaxMind to further evaluate and fix this issue, because they own the database . However currently we cannot offer an ETA at this time.

Apologies again for your experience and once we have additional information from our team , will keep this thread updated.

1 Vote 1 ·
Show more comments

1 Answer

bharathn-msft avatar image
0 Votes"
bharathn-msft answered

<<Resurfacing some of the information from comments to here for broader community usage>>

@VishalGoyal-4290 - Sorry for the experience , it is a known issue which our team is aware. Currently we have dependency on GeoLite2 from MaxMind , since the DB is owned by them to fix this our team is working with them.

Post further evaluating this with our internal team , it has been called out that one of the workaround we can think of is for customers to enable ingestion of raw IP addresses into Application Insights and do their own geo lookup after the data is ingested.

However, please be aware that our team is working on procuring an updated version of the IP mapping database. We do not have an ETA at this moment, will offer guidance on that soon.

Please feel free to circle back if you have any additional queries. Thank you.

5 |1600 characters needed characters left characters exceeded

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