Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

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

Copper Contributor

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

VishnuVasudevan_0-1671436541989.png

 

 

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

 

VishnuVasudevan_1-1671436564265.png


Below is the schema of the table used

VishnuVasudevan_2-1671436575770.png

 

REST API response with error 204 [no content]

 

VishnuVasudevan_3-1671436583470.png

Table not showing any results

VishnuVasudevan_4-1671436863139.png

 

 

Tutorial: Send data to Azure Monitor Logs using REST API (Resource Manager templates) - Azure Monito...

4 Replies
Problem was fixed!. The PostMan/LogicApp POST request requires, the whole body needed to be in an array.
Even after setting as Array i am getting 204

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 

Yes , i am able to see records after that , thanks .