SiteWise Edge ゲートウェイログのモニタリング - AWS IoT SiteWise

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

SiteWise Edge ゲートウェイログのモニタリング

Amazon CloudWatch Logs またはローカルファイルシステムに情報をログ記録するように AWS IoT SiteWise Edge ゲートウェイを設定できます。

イベントログを使用する

SiteWise エッジゲートウェイデバイスには、問題のデバッグに役立つイベントログファイルが含まれています。以下のセクションでは、UA コレクターおよび AWS IoT SiteWise パブリッシャーコンポーネントのイベントログファイル AWS IoT SiteWise OPCを検索して活用する方法について説明します。

AWS IoT SiteWise OPC UA コレクターイベントログ

UA AWS IoT SiteWise OPCコレクターコンポーネントには、お客様が問題を特定して修正するのに役立つイベントログが含まれています。ログファイルはローカルログファイルとは別のもので、次の場所にあります。置換 /greengrass/v2 または C:\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

このログには、詳細情報とトラブルシューティングの手順が含まれています。トラブルシューティングに関する情報は診断結果とともに提供され、問題の解決方法の説明と、場合によっては詳細情報へのリンクが含まれます。診断情報には次のものが含まれます。

  • 重要度レベル

  • タイムスタンプ

  • イベント固有の追加情報

例 ログの例
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 パブリッシャーコンポーネントには、お客様が問題を特定して修正するのに役立つイベントログが含まれています。ログファイルはローカルログファイルとは別のもので、次の場所にあります。置換 /greengrass/v2 または C:\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

このログには、詳細情報とトラブルシューティングの手順が含まれています。トラブルシューティングに関する情報は診断結果とともに提供され、問題の解決方法の説明と、場合によっては詳細情報へのリンクが含まれます。診断情報には次のものが含まれます。

  • 重要度レベル

  • タイムスタンプ

  • イベント固有の追加情報

例 ログの例
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