Forum Discussion

VishnuVasudevan's avatar
VishnuVasudevan
Copper Contributor
Dec 19, 2022

Unable to send logs to Log Analytics workspace using Data Collection Endpoint

Unable to send logs to Log Analytics workspace using Data Collection Endpoint.

Received 204(No content) as http response.

No logs are observed/recorded in the custom table.

 

I have followed the below approach.

Step1 : Created a custom table.

Step2 :  Registered an application and granted below permissions

 

 

Step 3 : Created a Data collection Endpoint in same region (East US) of Log analytics workspace.

Step 4 : Created a Data collection rule in the same region (East US).

Step 5 : Using Postman or Logic App I have tried to POST some sample JSON data to LAW.

Sample data matches the Table Schema and DCR schema as well

 


Below is the schema of the table used

 

REST API response with error 204 [no content]

 

Table not showing any results

 

 

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-api

4 Replies

  • VishnuVasudevan's avatar
    VishnuVasudevan
    Copper Contributor
    Problem was fixed!. The PostMan/LogicApp POST request requires, the whole body needed to be in an array.
      • VishnuVasudevan's avatar
        VishnuVasudevan
        Copper Contributor

        204 response is normal and correct. After few minutes you should see the logs ingested to the corresponding table.
        could you please elaborate your usecase?. VeenaAltsys 

Resources