In the Data Collection Rule I have pointed the file from where the logs should be collected.
Then it collects the existing logs from that file. However, it prevents the new logs to be appended in the log file [of my web app]. As a result, I am not receiving the new logs in the Log Analytics Workspace as well.
I am expecting to get logs (existing and future ones) of my Web Application which being generated in a file in the Log Analytics Workspace.
What I did:
- Created a log Analytics Workspace
- Tables > New Custom Log (MMA-based) > Created one
- Agent > Data Collection Rule > Created one
- Configuration: Data Source: Custom text logs > Provided the table name and file path Destination: Set the destination of the Workspace
- Resources: Set the machine name from where the logs being collected from