Hello Someiah C S,
Thank you for posting your query on Microsoft Q&A platform.
Data Collection Rules (DCR) and the Logs Ingestion API only work with DCR-based custom tables.
Classic (MMA-based) tables created via the legacy Custom Log Wizard or HTTP Data Collector API are not supported.
You are seeing the above error due to Creating a DCR for a classic table fails because it’s unsupported and deleting the classic table and trying to create a DCR-based table with the same name may still fail due to retained schema/metadata from the deleted table, causing conflicts.
To resolve this issue here are some mitigation steps:
- Migrate the existing classic table to DCR-based:
You can use the migration API to convert the table in place, keeping the same name and data.
Referral links: https://docs.azure.cn/en-us/azure-monitor/logs/tutorial-logs-ingestion-code? and https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal
- Create a new DCR-based custom table:
You can also use a different table name and point your ingestion process to it.
Create DCR-based custom tables by referring https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal
Additional links:
https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-rule-overview
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-retention-configure?
Thanks,
Suchitra.