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
demandé il y a 5 ans202 vues
1 réponse
1
Réponse acceptée

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
répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions