Greengrass device logging online/offline?

0

Hello,

I'd like to log information from an application running on a greengrass connected device (thing), how do I do that? currently we have a log file that the application writes, ideally greengrass would stream that when the device is online to cloudwatch or an s3 bucket?...advice would be appreciated.

Thanks,
Mike

fsmike
已提問 4 年前檢視次數 275 次
2 個答案
0

Hi Mike,

Greengrass currently only supports uploading logs from Greengrass system and Lambdas to CloudWatch Logs.
In your case, your application runs on a device which connects to Greengrass. You may directly use CloudWatch/S3 SDK in your application to upload logs. Or you can publish you application logs to an MQTT topic, and deploy a Lambda to listen on the topic and directly write to Lambda logs.
Hope this answers your question.

Thanks,
Hui

已回答 4 年前
0

Hello, yes, thank you! just what I needed.

fsmike
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南