How to debug if my DCR isn't working

Caday, Belmark June 0 Reputation points
2025-01-29T05:23:32.23+00:00

I have an on prem Linux server that was onboarded successfully through Azure Agent. I verified the server's status through KQL -> Heartbeat

My purpose for this is to collect Custom application logs from this server and feed it to Log Analyitcs Workspace through DCR. I have followed everything here:

https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-custom-logs

I have successfully created the Log Analytics Workspace -> Custom table under this workspace

Created the DCR as well, connect the on prem server as resource for this DCR, add the file patterns and file location in the source as well.

But I can't see the rawdata when I try to query it in LogAnalytics Workspace -> Logs using

MyCustomTable_CL | project RawData

So how to debug if the Data Collection Rule is really working? or where is the issue in this?

Here is my Source config:

User's image

And here is what the log data looks like in my Linux server:

2025-01-28 08:04:44(PID = 79773) (HOST = 98yd98sadsaddsa.org) INFO - DB CONNECT 'dsdsada'

This is inside .log file

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,437 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.