I was trying to collect custom application text logs using Azure Monitor Agent and push it to Log Analytics workspace but i was not getting any application logs in log analytics workspace.
I did the following steps as per the link : https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-log-text
- Create Data Collection endpoint(DCE) in same region as log analytics workspace.
- Create Custom Table (DCR based) in Log Analytics Workspace.
- Create Data Collection Rule (DCR) Custom Text Logs in same region with log path and file name in sources and destination with Log Analytics Workspace and adding the VM in resource from where the logs needs to be collected. (This step installed the Azure Monitor Agent as VM extension)
- While querying in Log Analytics Workspace no application logs were visible. but i was getting the heartbeat logs of that VM while querying analytics workspace with Azure Monitor Agent.
- I also checked the logs of Azure Monitor Agent on the VM and the logs was processed by the agent and there was no error.

