Issue with Creating DCR
We're currently working on ingesting MongoDB Atlas logs into Sentinel using the Log Ingestion API. I’ve written a script that pulls logs from MongoDB and successfully pushes them into a custom table in Log Analytics—it’s working fine so far.
Now, I’m trying to create a Data Collection Rule (DCR) to map the JSON fields to table columns. However, I'm running into an issue: When I attempt to create the DCR after the table is already created, I get the following error: "Classic (MMA-based) custom log tables for stream 'Custom-MongoAccessLogs_CL' with destination 'la--1767074561' are not supported in Data Collection Rules. Please migrate to a Data Collection Rule based table to receive custom logs."
But if I delete the classic table and then try to create the DCR, I run into a different issue: "The specified table: 'MongoAccess_CL' does not exist."
Has anyone faced this before? Any suggestions on how to properly set this up or resolve this conflict between classic and DCR-based tables?