Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically Query Azure Application Insights Analytics

Based off Overview of log queries in Azure Monitor, is there any method to programmatically query using .NET the application insights analytics and download the results?

Like say something like this in my C# application:

application_insight_analytics.connect(ApplicationInsightsConnectionString)
application_insight_analytics.query(query).toList();
like image 481
Kiran Ramesh Avatar asked Jun 15 '16 12:06

Kiran Ramesh


People also ask

Can I use application Insights with JavaScript?

Application Insights can be used with any webpages by adding a short piece of JavaScript. Node. js has a standalone SDK. If your web service is Java or ASP.NET, you can use the server-side SDKs with the client-side JavaScript SDK to get an end-to-end understanding of your app's performance.

How do I get data from app Insights?

The events you see in the Application Insights portal can be exported to storage in Microsoft Azure in JSON format. From there, you can download your data and write whatever code you need to process it.

How do you query custom events in application Insights?

In the Azure Portal, navigate to the Application Insights resource, and click Log Analytics. Log queries help you to fully leverage the value of the data collected in Azure Monitor Logs. Query your custom events by entering “customEvents” in the prompt and click Run.


1 Answers

Full Application Insights API is available, details are here:

https://dev.applicationinsights.io/

like image 99
Oleg Ananiev Avatar answered Oct 15 '22 16:10

Oleg Ananiev