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

Claudia Ferguson 86 Reputation points Microsoft Employee
2022-04-27T21:53:53.21+00:00

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
https://stackoverflow.com/questions/56669888/how-to-ingest-azure-web-app-web-job-custom-logs-into-a-azure-monitor-log-analyti

Azure Monitor HTTP Data Collector API - Azure Monitor | Microsoft Learn
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-collector-api

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,814 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 21,336 Reputation points MVP
    2022-04-28T06:42:27.447+00:00

    Hi,
    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