Hi @Martin Mikkelsen
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
When trying to use a second Data Collection Rule (DCR) — it works fine for the first, but the second DCR doesn’t collect logs until it removes the first It does if two DCRs conflict with each other when trying to send data to the same Log Analytics workstation.
To fix this, you want to make sure that each DCR is configured slightly differently. First, each DCR must have a unique stream name. For example, you can name Custom-Text-integration_CL-1 for the first and Custom-Text-integration_CL-2 for the second. This ensures that logs are not mixed between the two DCRs.
Now, each DCR in Log Analytics can have a different output stream. This will ensure that logs from each DCR go into their own separate tables, rather than overwriting each other. You can name Custom-IngestionTest_CL-1 for the first DCR and Custom-IngestionTest_CL-2 for the second.
Finally, if both DCRs are set to save from the same file, they may interfere with each other. You will need to ensure that the file paths on each DCR are unique and do not overlap. If you use wildcards (like *.log) just make sure each DCR saves it from files.
After updating the DCRs with different names, output streams, and file paths, try reloading them and checking Log Analytics to ensure the logs are working properly
Let me know if you need more help with this or have any other questions. I’m happy to help!
If you have any concerns, please go through this link: -
https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-rule-overview
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-workspace-overview
If you have any further queries, do let us know
If the answer is helpful, please click "Accept Answer" and "Upvote it"