你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MySqlAuditLogs 表的查询

有关在 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