Missing ingestionEndpoint on data collection rule

42726446 65 Reputation points
2024-06-17T12:26:04.26+00:00

I am trying to upload logs to a log analysis workspace by following your tutorial. I am currently stuck at the Create data collection rule section because the documentation is wrong and/or outdated.

Because your documentation says that it's an option, I would prefer not to create a DCE and instead send logs directly to the DCR (via the DCR endpoint).

Problem 1: Wrong deployment template code

I am pretty sure your documentation accidentally got the template code mixed up. The code in the "DCR endpoint" tab should instead be in the "DCE" tab and vice versa. A DCR endpoint is not supposed to need a data collection endpoint ID.

Screenshot 1: the DCR endpoint isn't supposed to have an endpointResourceIdUser's image

Screenshot 2: the "DCE" template is supposed to have the dataCollectionEndpointId instead

User's image

Problem 2: Wrong template schema

So I tried deploying the code in the "DCE" tab but Azure complained that the template schema version is not supported.

Image

Problem 3: No ingestion endpoint

To get around that problem, I changed the schema version to 2019-08-01 and managed to deploy my DCR successfully. Now the problem is that when I look at the JSON view of the created DCR, then there is no logsIngestion endpoint there. I suspect this might have happened because I changed the template schema version, but I'm not sure how to get around this problem.

Image

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,330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,031 Reputation points
    2024-06-18T18:39:20.7133333+00:00

    @42726446 - Welcome to Microsoft Q&A and thanks for reaching out to us.

    We have fixed all the above-mentioned doc errors and bugs that are reported here. Hoping that the issue must be resolved by now.

    Please see the attached doc for reference: https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-api?tabs=dcr

    Hope this helps. and please feel free to reach out if you have any further questions.


    Please don't forget to "Accept as Answer" and click "Yes" if the above response is helpful, so it can be beneficial to the community.


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.