Azure IoT 设备配置服务:清空日志

问题描述 投票:0回答:1

我正在尝试通过 X.509 证书为设备提供 Azure IoT DPS。这当前失败并显示 401 状态代码,因此我想查阅 DPS 日志以确定发生了什么。

我已按照 故障排除说明 并为我的 DPS 创建诊断设置,选择“allLogs”和“发送到 Log Analytics 工作区”。

现在,在再次尝试配置设备(并收到 401 状态代码)后,我尝试查询日志:

但是它们是空的!但是,当我在“指标”下检查证明尝试时,我的配置尝试确实出现了。为什么日志是空的?

azure azure-iot-hub azure-iot-dps
1个回答
0
投票

我能够找到带有 (activitysubstatus) 状态代码的 X.509 证书详细信息以查阅在 Azure 活动下找到的 DPS 日志。

添加到@Naveen 输入。

enter image description here

enter image description here

  • 选择您创建的 DPS 的相应时区。

enter image description here

  • 在 DPS 中使用 Azure 活动类别值。

enter image description here

  • 在 DPS 中使用 Azure 诊断类别值。

enter image description here

  • 在 Log Analytics 工作区中使用 Azure Diagnostics。

enter image description here

  • 在 Azure Diagnostics 中我搜索了与证书相关的日志。

enter image description here

  • 在Azure Activity中我搜索了与DPS证书相关的日志并能够找到。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.