Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS lambda does not write logs in the CloudWatch

I have made a simple AWS lambda and deployed it to with AWSLambdaFullAccess permissions. There was some logs after invocation. Next day I invoked the lambda again multiple times, all executions were successful but I didn't see any new logs into CloudWatch. I saw some logs only after redeploy the lambda

There is the code:

    public string FunctionHandler(string input, ILambdaContext context)
    {
        LambdaLogger.Log(input);
        return input.ToLower();
    }

1 Answers

Lambda writes logs to a buffer which should be flushed after completing the lambda. But looks like for some reason lambda cannot flush it. I have notified AWS team about it few weeks ago, but the issue still not fixed.

like image 147
R.Titov Avatar answered Aug 25 '26 10:08

R.Titov