Azure App Insights duplicates telemetry

Bohdan B 0 Reputation points
2023-05-19T13:03:57.6533333+00:00

Hello!

We have a web application that sends custom events to our Application Insights. Application Insights is workspace based. We send our logs via diagnostic settings to a separate workspace in another subscription (from our app insights).
We don't send logs back to the workspace our app insight is based on, but every log record duplicates.
When I'm trying to perform KQL request on this workspace, I don't see any duplicates, duplicates are shown only in Application Insight.

That's definitely a problem with the configuration. What's the cause of these duplicates?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,018 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. AnuragSingh-MSFT 21,246 Reputation points
    2023-05-23T08:15:07.46+00:00

    @Bohdan B , Based on my understanding the scenario is described as below:

    1. You have an Application Insights workspace to which the Apps are sending telemetry.
    2. You have also enabled Diagnostic settings ON this AppInsights resource to forward logs to another LA Workspace (in another Subscription/RG).

    If the environment above describes your scenario, you are seeing duplicate logs in AppInsigts because AppInsights pulls data to all connected LA Workspace.

    If this is causing issues in using AppInsights, you should consider disabling the diagnostic settings on Appinsights to forward data to another LA workspace. You can still forward data using Diagnostic settings to other destinations like Storage Account, event hub etc.

    If the mentioned scenario is different from your environment, please add additional context to help us understand the issue better.

    Hope this helps.


  3. Bohdan B 0 Reputation points
    2023-06-05T08:12:57.4233333+00:00

    It seems that this is one of the not well-documented or "obvious" feature of azure app insights... If you enable diagnostics settings and send logs to another workspace, your logs are duplicated in AI. In our case we use azure managed grafana and because of this issue we forced to rebuild all our dashboards from AI to Log Analytics Workspace.

    0 comments No comments

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more