Display user ID in the metrics of application Insight

假装没事ソ 提交于 2019-12-10 16:01:43

问题


This page http://azure.microsoft.com/en-us/documentation/articles/app-insights-web-track-usage-custom-events-metrics/#authenticated-users

Show how to have login information in the section "Authenticated users".

But how can I see this information in Application Insight after that


回答1:


I do not see user anywhere in the custom event properties for events, it seems to be the internal field that's collected but not directly exposed in the view because most of the time this "auto-collected" user would be simply an auto-generated GUID....

You can take a look at the users summary on "Usage Analytics/Users" view as well as in Metric Explorer (just select the metrics about app users like "user accounts"...)

You should be able to search for user in the Diagnostic Search but only if you specify the user name you are looking for in the search - you'll get events/traces and so on for that particular user.

Also, you can try to submit authenticated user as a custom property on the event instead of (in addition to) the embedded property, in this case you should definitely see if as part of the properties in UI but this leads to a duplication of the value inside the event (internal + custom)...




回答2:


You can make a query with Analytics. The result of your query should return a column called user_AuthenticatedId.



来源:https://stackoverflow.com/questions/29802325/display-user-id-in-the-metrics-of-application-insight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!