48

What is the use case for Azure application insights or log analytics?

I am using APIM and Azure Functions and want to perform logging for requests. Which one is the best fit, application insights or log analytics?

https://learn.microsoft.com/en-gb/azure/azure-monitor/overview

Update

In particular, any info on Azure application insights vs log analytics used for APIM?

4 Answers 4

48

What used to be known as Application Insights and Log Analytics independent offerings - are now a part of Azure Monitor. We're actively merging both platforms.

For instance, Analytics exploration part is exactly the same (same backend, same UX, same capabilities, just different data schema). Alerts are the same. Some experiences are still different (for instance, app experiences such as Application Map).

Example: in Azure Monitor Overview (https://learn.microsoft.com/en-gb/azure/azure-monitor/overview):

enter image description here

"Log Analytics" is referred as a feature and not what used to be known as Log Analytics as a product. For instance, Application Insights resources provide the same "Log Analytics" feature.

For Azure Functions / APIM the native integration with Azure Monitor is through Application Insights.

Update (October, 2020). Application Insights can now store data in Log Analytics workspaces. Now many workspace related features are available to Application Insights resources. How to migrate.

enter image description here

20
  • Interesting, we're in the process of trying to wrap our fingers around the new offering Azure Monitor. Of course we still have the existing Application Insight resources. We've set up a new central Log Analytics Workspace which is used by our newly created Kubernetes Cluster (AKS). Is there any way to let the existing Application Insights also log to the newly created centralized Log Analytics Workspace? What is considered best practice any way? To let all resources log into one single Log Analytics Workspace or create multiple Workspaces? Thank you Commented Aug 20, 2019 at 9:09
  • 6
    There are pros and cons with single vs. multiple Log Analytics workspaces (for instance, RBAC, etc.). Both ways are supported and we have customers who opt into one or another (or both) solutions. Re: Application Insights & workspaces. Right now it is not possible to put Application Insights data into a workspace (unless you write your own exporter). We're actively doing the work to Application Insights resource data would be stored in workspace. It might take some time for us to get there though.
    – ZakiMa
    Commented Aug 23, 2019 at 20:40
  • Thanks for answering my questions. Do you recommend for RBAC to use different Log Analytics Workspaces? Commented Aug 24, 2019 at 18:49
  • 2
    @ZakiMa Could you please share the link to uservoice or roadmap where I can track the progress of this feature?
    – DevOpsy
    Commented Mar 2, 2020 at 5:02
  • Frustratingly in Azure workbooks, you can't query from an LA and an AI in the same cell, so they still seem to be treated quite differently. Any way aroun this @ZakiMa Commented Sep 3, 2020 at 18:01
1

for Azure function, better to go with application insights and if you working with kubernetes cluster choose Log analytics work space

0

Azure Functions offers built-in integration with Azure Application Insights to monitor functions.

So for azure function, you'd better use application insights, which is easy configure.

Details are here.

5
-1

Application Insights Application Insights is an Application Performance Management (APM) service, that you use to monitor your application. It helps to detect performance anomalies, has analytic abilities, and can help you understand how users interact with your application.

Not only can it collect telemetry data from your application, but it can also collect information from the application host, Azure Diagnostics, or Docker logs. It’s also nice that you can use Application Insights to set up tests that send requests to your website/service to check for availability (and receive a notice if these fail).

One of the most powerful things that I’ve noticed in my use of Application Insights (which is monitoring this blog), is the Smart Detection feature. This feature proactively analyzes and detects changes in your application. So even if you hadn’t set up an Alert of monitoring of a specific metric, it can pick it up and react to it.

1
  • 5
    I cannot confirm whether or not you are the owner of the mentioned "blog", but if you blatantly copy & paste stuff from external sites, at least reference them. A simple google search yields https://adinermie.com
    – Gerrit-K
    Commented Aug 7, 2020 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.