azure-logic-appsazure-log-analyticsazure-log-analytics-workspace

Azure - LogicApps injecting a Log Analytics doesn't inject logs


I'm intending to inject logs from Logic Apps to Log Analytics workspace. (Aim : Poll data from remote REST API and push them in Sentinel). I follow Microsoft Standard procedure as follows, keeping every resource in same region, same RG:

{
 "Time": "2023-11-06T07:34:00Z",
 "Value": "passed"
}

I used Workspace ID & Key found in Linux Agents of my LogAnalytics Workspace to connect, maybe it's the buggy move.

When fired, Logic Apps yields a HTTP 200 code, but no log seems inserted in Log Analytics. Did some of you tried this usecase successfully?


Solution

  • I used Workspace ID & Key found in Linux Agents of my Log Analytics Workspace to connect, maybe it's the buggy move.

    If you have a Consumption Logic app, then you can use both Windows and Linux Agent Workspace ID and Workspace Key to create a connection to log analytics workspace. But If you have a Standard Logic app then you need to use only Windows Agent Workspace ID and Workspace Key.

    I am able to send the logs from a Consumption Logic app to log analytics workspace as shown below.

    enter image description here

    Logs in log analytics workspace-

    enter image description here

    Please try to wait for sometime if you are not able to see the logs instantly after logic app execution and refresh the page if needed. I believe you will also be able to get the logs alike me.