azure-application-insights

Is there a method to view Application Insights logs besides Azure Portal?

邮差的信 提交于 2020-04-15 20:09:05
问题 I am unable to endure clicking so many times in Azure Portal to get to AppInsights log analytics. Saving the URL to the analytics blade and returning to it also frequently fails to load the page due to what appear to be some authentication token expiration issues. How can I run my Kusto queries on my AppInsights instance without using Azure Portal? 回答1: We are running a private preview of the ability to use the Azure Data Explorer tools such as Kusto Explorer and Kusto Web explorer to query

Is there a method to view Application Insights logs besides Azure Portal?

吃可爱长大的小学妹 提交于 2020-04-15 20:07:31
问题 I am unable to endure clicking so many times in Azure Portal to get to AppInsights log analytics. Saving the URL to the analytics blade and returning to it also frequently fails to load the page due to what appear to be some authentication token expiration issues. How can I run my Kusto queries on my AppInsights instance without using Azure Portal? 回答1: We are running a private preview of the ability to use the Azure Data Explorer tools such as Kusto Explorer and Kusto Web explorer to query

User information with Application Insights

无人久伴 提交于 2020-04-11 11:05:07
问题 I am new to Microsoft Azure Application Insights and need some help on getting user information (Login ID, number of times user logged into application, etc). I went through another similar stack overflow post Getting User Information in App Insights , but it did not helped me. I have already setup Application Insights and getting the default data presented by Azure itself. Request your help on the same. Thanks in advance. 回答1: We did something similar to this using custom properties in our

Application Insights configuration web API

喜你入骨 提交于 2020-03-25 18:58:31
问题 I have created a library project for writing logs into ApplicationInsights as well as table storage and is being consumed my different other WebAPI projects. But due to some reason the logs are not getting logged in Application Insights but it works with table storage. private void AddTelemetryTarget(string instrumentationKey, LoggerEnumerations.LogLevel minLogLevel, LoggingConfiguration config) { try { ConfigurationItemFactory.Default.Targets.RegisterDefinition("ApplicationInsightsTarget",

Application Insights configuration web API

寵の児 提交于 2020-03-25 18:57:49
问题 I have created a library project for writing logs into ApplicationInsights as well as table storage and is being consumed my different other WebAPI projects. But due to some reason the logs are not getting logged in Application Insights but it works with table storage. private void AddTelemetryTarget(string instrumentationKey, LoggerEnumerations.LogLevel minLogLevel, LoggingConfiguration config) { try { ConfigurationItemFactory.Default.Targets.RegisterDefinition("ApplicationInsightsTarget",

How to check the availability for the internal app services hosted inside internal App Service Environment

南楼画角 提交于 2020-03-23 08:14:39
问题 I am trying to setup the availability test (URL-Ping test) in Azure Application Insights, but the endpoint that requires the basic authentication. And the endpoint(Azure App Services) resides in internal App Service Environment (ASE). So, can anyone suggest me how to check the availability for the internal azure app services hosted inside internal App Service Environment. 回答1: A bit late the response, but here it goes. Please have a look at this article that explains how to do it. Basically

Application Insights User ID from ASP.NET Core identity

眉间皱痕 提交于 2020-02-23 06:17:28
问题 I am using .NET Core 3.1. I want to populate the User ID property in Application Insights with the ASP.NET Core identity username. I got this article by Microsoft, but it is for the full .NET Framework. I also tried the following code given here (I changed claim to Identity) public class TelemetryEnrichment : TelemetryInitializerBase { public TelemetryEnrichment(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) { } protected override void OnInitializeTelemetry(HttpContext

Application Insights User ID from ASP.NET Core identity

情到浓时终转凉″ 提交于 2020-02-23 06:11:06
问题 I am using .NET Core 3.1. I want to populate the User ID property in Application Insights with the ASP.NET Core identity username. I got this article by Microsoft, but it is for the full .NET Framework. I also tried the following code given here (I changed claim to Identity) public class TelemetryEnrichment : TelemetryInitializerBase { public TelemetryEnrichment(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor) { } protected override void OnInitializeTelemetry(HttpContext

Filling User Id Field in Application Insights from ASP.NET Core

≯℡__Kan透↙ 提交于 2020-02-23 05:13:58
问题 I would like to be able to populate the User Id field in Application Insights with my real username data. This is an internal application, so privacy concerns with a simple username field are moot. As far as I can tell, all solutions available online for this strictly work in .NET Framework, not .NET Core. You can find this solution in a few places, including some old AI documentation on GitHub. However, when I run it, I get an error on startup indicating that dependency on the scoped object

Azure Function is not logging LogMetric telemetry to Application Insights

雨燕双飞 提交于 2020-02-06 10:02:07
问题 I have a 3-week-old Function on the v2 SDK and uses the out-box App Insights support, i.e. just set the environment variable and ...magic. I did read that by default it doesn't send Information level logs to AppInsights and this looks correct because I can't see any of my information tracing but I do see occasional errors I've logged out with my custom message. But for metrics, its broken. I can see some semblance of my telemetry in the logs, sort of. It's strange. Look. Now look at these