Querying data from multiple Application Insights instances

Querying data from multiple Application Insights instances

Getting insights into the resources we operate is a crucial part of understanding where we need to improve and what works well. In reality, the insights and telemetry we gather exist in various regions and datacenters. Data sits in multiple subscriptions and different resource groups - even the same application can have numerous Application Insights instances, depending on what type of data and how much we collect. When I want to aggregate and query the logs from various Application Insights instances, I can use KQL in the log query. For example, a distributed set of applications report telemetry in different…

Read More

Upgrade Application Insights to Workspace-based Resource Mode from Classic

Upgrade Application Insights to Workspace-based Resource Mode from Classic

Recently, Microsoft introduced a new option when creating Application Insight instances. A selection to help us choose between the Classic approach, or the modern Workspace-based mode. In the Azure Portal, it can look like this when we create a new Application Insights today: Select the Resource Mode of Application insights when you create a new Application Insights.If you have Application Insights instances that were created some time ago, you may want to upgrade to Workspace-based mode at some point. Note: Classic Application Insights will be retired on in February 2024, which indicates that using Workspace-based Application Insights is the…

Read More

Use Application Insights for Worker Service applications in .NET Core console apps, containers, and any non-HTTP apps

Use Application Insights for Worker Service applications in .NET Core console apps, containers, and any non-HTTP apps

Relying on Application Insights to provide great data has always been a core component of anything I create. Recently, I upgraded my projects to .NET Core 3.1, and in few cases I also upgraded to .NET 5 (Preview). A lot of my code is executed in containers, or other background processes that may not have a native Application Insight integration. With the upgrade to .NET Core 3.1, we noticed after a while that no logs were persisted to the cloud anymore. I could see telemetry being created when debugging, and from that perspective all the unit tests were…

Read More

Retrieve logs from Application Insights programmatically with .NET Core (C#)

Retrieve logs from Application Insights programmatically with .NET Core (C#)

When working with Azure's Application Insights, there's some times where I would've wanted to quickly and programmatically export specific events, search the logs or otherwise pull some data out based on dynamic metrics of applications or monitoring solutions I've set up. In this post we'll take a look at how easy it is to use the Microsoft.Azure.ApplicationInsights NuGet package to utilize .NET Core to retrieve data programmatically from Application Insights. For example, in the Azure Portal I can easily see my Application Insights data on demand and search and filter my logs in the intuitive and simplified UI:…

Read More

Getting Started with Application Insights with Visual Studio 2015 for your ASP.NET Web Applications

Getting Started with Application Insights with Visual Studio 2015 for your ASP.NET Web Applications

Disclaimer: This post was written 2014-11-13, while the Application Insights were still in Beta/Preview. Changes will most likely happen, and therefore some information below may have changed by the time you read this. Introduction to Microsoft Application Insights One of the really cool features that was recently announced by Microsoft is the Application Insights integration with Visual Studio 2015. Don’t confuse this with reporting provided by services like Google Analytics, which only use client-side reporting capabilities. This is full server-side awesomeness which can report the health of your specific service or application directly, having the reports instantaneously accessible…

Read More