We have simulated some error logs within our SQL Server Managed Instance. The SQL Server error logs are within the Management folder. I have a simple requirement wherein I am stuck streaming these error logs to Azure portal via the log analytics workspace. See the attached screenshot.
Note that I need to monitor the logs and when I get that message text, I need to alert via Azure portal.
I am trying to stream it to the Log Analytics workspace using the "add diagnostic setting" feature, but I am not able to find the specific category. I can only find:
- Resource Usage Statistics
- Devops operations Audit Logs
- SQL Security Audit Event
I am not able to find the error logs nor able to query using the Azure diagnostic Kusto query. Once I am able to find the log, the Azure portal will capture the log entry and will alert via Azure monitor.
Can someone advise as to how to alert via the azure portal by reading those error logs in the SQLMI.
