0
votes

I have an application that ingests lot of data into Log Analytics Workspace in Azure. I tried to run below Kusto query to figure out which piece is generating and ingesting more data in Log Analytics Workspace. And I found that AppDependencies was generating and ingesting major chunk of data. And I am looking for any suggestions/solutions on how to stop ingesting only the AppDependencies data in Log Analytics Workspace ?

union withsource = tt *
| where TimeGenerated > ago(1h)
| where _IsBillable == true
| summarize BillableDataMBytes = sum(_BilledSize)/ (1000. * 1000.) by tt
| render piechart
1

1 Answers

2
votes

You can stop dependency tracking by setting EnableDependencyTrackingTelemetryModule to false in your application insights configuration.

For example, here's what application insights configuration looks like for one of our projects where we have turned off dependency tracking:

  "ApplicationInsights": {
    "LogLevel": {
      "Default": "None"
    },
    "EnableAdaptiveSampling": false,
    "EnableDependencyTrackingTelemetryModule": false,
    "ConnectionString": "application-insights-connection-string"
  }

You may also find this link useful for fine tuning the data collected by application insights: https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core