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
EXPERT
asked 5 years ago193 views
1 Answer
1
Accepted Answer

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
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions