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 年前258 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则