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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠