skip to Main Content

I am trying to access requests made by different users. I am unable to get user account details like firstname, lastname, email regarding calls made. There are no fields as such and also not sure which field to use as user_Id field value is not useful. How can I achieve the same ? Please help me with queries in Azure portal directly , I am not accessing this via code.

requests
| where client_CountryOrRegion !="Sample" and user_Id !=''

2

Answers


  1. To retrieve user-specific details such as firstname, lastname, and email from Application Insights telemetry data using Azure Monitor queries, you typically need to ensure that such data is being sent as custom dimensions or properties with your telemetry data. If these details are not being explicitly captured and sent with the telemetry, they won’t be directly accessible via Application Insights queries.

    The user_Id field in Application Insights is a generic identifier for a user session and does not automatically include detailed user account information unless you have explicitly set it up to capture such data.

    if you sent the telemetry then you can find using query like below

    requests
    | where client_CountryOrRegion !="India" and user_Id !=''
    | extend firstName = customDimensions.firstName, lastName = customDimensions.lastName, email = customDimensions.email
    | project timestamp, name, firstName, lastName, email
    
    Login or Signup to reply.
  2. You should send the additional user level properties into the Application Insight TelemetryTrace under the TelemetryClient class.

    Example can be seen here – https://dzimchuk.net/tracing-and-logging-with-application-insights/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search