Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I see log entries in Application Insights?

I got Application Insights up and running for my ASP.NET application. Then, I installed Microsoft.ApplicationInsights.NLogTarget package and added ApplicationInsightsTarget to my NLog configuration. It seems to be working fine. At least I can see outgoing requests to dc.services.visualstudio.com:443. Now, where on Azure Portal do I see my log entries? APPLICATION INSIGHTS -> Activity log page is always empty.

Update: The issue was I thought all regular NLog messages should appear as they were in terms of event category, i.e. Info, Warn, etc. But the reality was ANY NLog messages went as TRACE entries in Application Insights. Kind of disappointing.

like image 788
UserControl Avatar asked Sep 07 '16 13:09

UserControl


2 Answers

I have tested Microsoft.ApplicationInsights.NLogTarget on my local and get the trace information in Application Insights. We can get this information via click Your Application insigths -> Overview -> Search, like the following screenshot. enter image description here

For how to use Nlog in Application Insights, please read this article.

like image 50
Jambor - MSFT Avatar answered Sep 27 '22 15:09

Jambor - MSFT


Technically if you add some another logger package for AI, new kind of appender is added. Internally the appender calls Telemetry methods from Application Insights and add some additional information to request or exception (using the AI properties).

The answer is: You can find all your telemetries on one place in the Azure portal as usual. For example in Diagnostics Search or in the aggregated graphs with a small delay.

like image 20
Miroslav Holec Avatar answered Sep 27 '22 16:09

Miroslav Holec