若要了解如何在 Azure 入口網站中使用這些查詢,請參閱 Log Analytics 教程。 如需 REST API,請參閱 查詢。
稽核一般事件
顯示 MySql 稽核記錄檔中的所有一般事件。
MySqlAuditLogs
| where EventClass == "general_log"
| order by TimeGenerated desc
| take 100
稽核連線事件
顯示 MySql 稽核記錄檔中的所有 CONNECTION 事件。
MySqlAuditLogs
| where EventClass == "connection_log"
| order by TimeGenerated desc
| take 100