PFB answers inline:
- Is a DCE mandatory in our situation?
As per: When is a DCE required?
Prior to March 31, 2024, a DCE was required for all data collection scenarios using a DCR that required an endpoint. Any DCR created after this date includes its own endpoints for logs and metrics. The URL for these endpoints can be found in the logsIngestion
and metricsIngestion
properties of the DCR. These endpoints can be used instead of a DCE for any direct ingestion scenarios.
A DCR with endpoints can also use a DCE. In this case, you can choose whether to use the DCE or the DCR endpoints for each of the clients that use the DCR.> > Data collection endpoints only support Log Analytics workspaces as a destination for collected data. Custom metrics (preview) collected and uploaded via Azure Monitor Agent aren't currently controlled by DCEs.
- After reviewing the docs and codes on the wiki and GitHub, we identified two possible approaches to building data connectors. We would appreciate your guidance on which approach is more advisable?
Approach 1 may not be a practical solution as to build a data connector we have supported methods defined and none of them would ingest logs from on-prem endpoint to sentinel workspace.
You may follow the second approach as it is a tested method which uses
Azure Monitor Logs: DCR-based Custom Logs and Codeless Connector Platform (CCP), this would require you to have a DCE configured (pre-requisite for CCP).
If you don't have any further queries and the suggested answer is as per your business need, please "Accept the answer", This will help us and others in the community as well.
Thanks,
Akshay Kaushik