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

DurableTaskSchedulerLogs 表的查询

有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅 查询

最近的错误

显示最新的错误和关键日志消息。

// Recent Errors
// Shows recent error messages
DurableTaskSchedulerLogs
| where Level < 3  // Error and Critical
| project TimeGenerated, TaskHub, OperationName, Log
| sort by TimeGenerated desc
| take 100

辅助角色连接摘要

任务中心随时间推移而进行的辅助角色连接和断开连接的简单视图。

// Worker Connection Summary
// Simple view of worker connections by taskhub
DurableTaskSchedulerLogs
| where OperationName == "WorkerConnected" or OperationName == "WorkerDisconnected"
| summarize 
    Connected = countif(OperationName == "WorkerConnected"),
    Disconnected = countif(OperationName == "WorkerDisconnected")
    by TaskHub, bin(TimeGenerated, 1h)
| sort by TimeGenerated desc