if injection of the logs to Azure LAW directly is supported.

Claudia Ferguson 91 Reputation points Microsoft Employee

I had a question for Log analytics that I would like to confirm the answer

It is possible for APP to inject the logs directly to Azure LAW vs going through App Insights first".

I found out from the two references below that "you can use the HTTP Data Collector API to send log data to a Log Analytics workspace in Azure Monitor from any client that can call a REST API".

I would like to get a confirmation that this is the case to move forward. Thank you so much!

Below are the references:

How to ingest Azure web app/web job custom logs into a Azure Monitor Log analytics workspace - Stack Overflow

Azure Monitor HTTP Data Collector API - Azure Monitor | Microsoft Learn

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,986 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 22,101 Reputation points MVP

    App Insights has some pre-defined tables that you insert data into. Those tables have specific schema related to monitoring apps/web apps. It is possible to use the HTTP Data collector API but then you will have a custom table where the data will be sent. When you use the HTTP Data collector API keep in mind that the data will not be visible into the App Insights experience. You can still use some of the common features like alerts. If you have app I would suggest using the App insights integration to monitor rather than using HTTP Data Collector API. The latter is more useful if you have some logs that do not fit into the App insights model or you do not want to use App insights at all for your app monitoring. Keep in mind that there is a new API for sending custom logs. That API will replace the HTTP Data Collector API in the future. Currently no deprecation dates are announced. Usually when deprecation is announced you have 1 to 3 years to migrate from the time of announcement.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful