监控 SiteWise 边缘网关日志 - AWS IoT SiteWise

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

监控 SiteWise 边缘网关日志

您可以将 AWS IoT SiteWise Edge 网关配置为将信息记录到 Amazon Lo CloudWatch gs 或本地文件系统。

使用事件日志

SiteWise Edge 网关设备包含事件日志文件,以帮助调试问题。以下各节将帮助您查找和利用 AWS IoT SiteWise OPC-UA 收集器和 AWS IoT SiteWise 发布器组件的事件日志文件。

AWS IoT SiteWise OPC-UA 收集器事件日志

AWS IoT SiteWise OPC-UA Collector 组件包括事件日志,可帮助客户识别和修复问题。日志文件与本地日志文件分开,位于以下位置。将/greengrass/v2C:\greengrass\v2 替换为 AWS IoT Greengrass 根文件夹的路径。

Linux
/greengrass/v2/work/aws.iot.SiteWiseEdgeCollectorOpcua/logs/IotSiteWiseOpcUaCollectorEvents.log
Windows
C:\greengrass\v2\work\aws.iot.SiteWiseEdgeCollectorOpcua\logs\IotSiteWiseOpcUaCollectorEvents.log

此日志包含详细信息和故障排除说明。故障排除信息与诊断一起提供,并附有如何解决问题的说明,有时还会提供指向更多信息的链接。诊断信息包括以下内容:

  • 严重性级别

  • Timestamp

  • 其他活动特定信息

例 示例日志
dataSourceConnectionSuccess: Summary: Successfully connected to OpcUa server Level: INFO Timestamp: '2023-06-15T21:04:16.303Z' Description: Successfully connected to the data source. AssociatedMetrics: - Name: FetchedDataStreams Description: The number of fetched data streams for this data source Value: 1.0 Namespace: IoTSiteWise Dimensions: - Name: SourceName Value: SourceName{value=OPC-UA Server} - Name: ThingName Value: test-core AssociatedData: - Name: DataSourceTrace Description: Name of the data source Data: - OPC-UA Server - Name: EndpointUri Description: The endpoint to which the connection was attempted. Data: - '"opc.tcp://10.0.0.1:1234"'

AWS IoT SiteWise 发布者事件日志

AWS IoT SiteWise Publisher 组件包括事件日志,可帮助客户识别和修复问题。日志文件与本地日志文件分开,位于以下位置。将/greengrass/v2C:\greengrass\v2 替换为 AWS IoT Greengrass 根文件夹的路径。

Linux
/greengrass/v2/work/aws.iot.SiteWiseEdgePublisher/logs/IotSiteWisePublisherEvents.log
Windows
C:\greengrass\v2\work\aws.iot.SiteWiseEdgePublisher\logs\IotSiteWisePublisherEvents.log

此日志包含详细信息和故障排除说明。故障排除信息与诊断一起提供,并附有如何解决问题的说明,有时还会提供指向更多信息的链接。诊断信息包括以下内容:

  • 严重性级别

  • Timestamp

  • 其他活动特定信息

例 示例日志
accountBeingThrottled: Summary: Data upload speed slowed due to quota limits Level: WARN Timestamp: '2023-06-09T21:30:24.654Z' Description: The IoT SiteWise Publisher is limited to the "Rate of data points ingested" quota for a customers account. See the associated documentation and associated metric for the number of requests that were limited for more information. Note that this may be temporary and not require any change, although if the issue continues you may need to request an increase for the mentioned quota. FurtherInformation: - https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html - https://docs.aws.amazon.com/iot-sitewise/latest/userguide/troubleshooting-gateway.html#gateway-issue-data-streams AssociatedMetrics: - Name: TotalErrorCount Description: The total number of errors of this type that occurred. Value: 327724.0 AssociatedData: - Name: AggregatePropertyAliases Description: The aggregated property aliases of the throttled data. FileLocation: /greengrass/v2/work/aws.iot.SiteWiseEdgePublisher/./logs/data/AggregatePropertyAliases_1686346224654.log