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();
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.
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.
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.
Full Application Insights API is available, details are here:
https://dev.applicationinsights.io/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With