Where are lambda logs?

0

I've been running a lambda couple dozen times in the past 10min. "last event time" on cloudwatch logs is 20mins ago. Where are my logs? lambda is not writing logs to cloudwatch more or less immediately?...

AWS
專家
已提問 5 年前檢視次數 202 次
1 個回答
1
已接受的答案

Lambda does write to CWLogs with in seconds.

Are you seeing a Log Group for you lambda? If so are there any Log Streams in that log group. Using the Monitoring console is probably the easiest way to get to the Log group for a Lambda: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-logs.html

Also be aware that a new log stream will be created every time your Lambda moves to a new underlying container, so if you are viewing one stream and not seeing new statements, they may be going into a new stream in that Lambda log group.

AWS
SamKeen
已回答 5 年前

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

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

回答問題指南