共用方式為

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