CloudHsmServiceOperationAuditLogs 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
长于 1 秒的 Cloud HSM 请求列表。
let threshold=1000;
CloudHsmServiceOperationAuditLogs
| where DurationMs > threshold
| summarize count() by OperationName, _ResourceId
显示每个操作随时间推移的 Cloud HSM 请求量趋势的折线图。
CloudHsmServiceOperationAuditLogs
| summarize count() by bin(TimeGenerated, 1h), OperationName // Aggregate by hour
| render timechart
按请求类型列出的失败请求计数
CloudHsmServiceOperationAuditLogs
| where ResultType == "Failure"
| summarize count() by ResultSignature, _ResourceId