Search code examples
azureazure-analysis-services

How is Application insight tracking the User_Id?


Im running a Azure Webapp with application insight.

I know Microsoft cant show the real IP (Client_IP) so I add the real IP address to all requests (Ip).

I have a visitor client_id="h9zbt" that in the last 24h is using 48 different client_IP adresses.

The same user also has several real IPv6 adresses.

I like to block this IP from my website, but I think this looks so strange.

Is it really the same user?

How is Application insight tracking the User_Id?

Image link


Solution

  • Usually application insights is automatically opening a session automatically for each user (look for the ai_session key). Therefore the default user scope would be a session scope.

    You can override this behaviour by sending a user context if you have some kind of sign-in. (https://learn.microsoft.com/en-us/azure/application-insights/app-insights-usage-send-user-context)

    I find it likely that it's the same user on the same device, just using several IP-addresses, maybe as an unsuccessful attempt to stay anonymous.