Ask Your Question
1

After a certain amount of time, Cloudwatch stops displaying logs from AWS lambda.

asked 2022-09-20 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-14 20:00:00 +0000

ladyg gravatar image

There are several reasons why Cloudwatch may stop displaying logs from AWS Lambda:

  1. Retention period: Cloudwatch has a retention period for log data, after which the data is deleted. Check if the retention period has expired.

  2. Log group limit: Each AWS account has a limit on the number of log groups that can be created in Cloudwatch. If the limit is reached, try consolidating or deleting old log groups.

  3. Permission issues: Ensure that the IAM role associated with the Lambda function has the necessary permissions to write logs to Cloudwatch.

  4. Issues with Cloudwatch agent: If the Lambda function is running on an EC2 instance with the Cloudwatch agent installed, check if the agent is running and configured correctly.

  5. Lambda function errors: If the Lambda function encounters errors, it may not be able to write logs to Cloudwatch. Check the Lambda function's Cloudwatch metrics for any errors.

  6. Firewall or network issues: Ensure that there are no firewall or network issues that may be preventing the logs from being uploaded to Cloudwatch.

If none of the above solutions work, consider contacting AWS Support for further assistance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-20 11:00:00 +0000

Seen: 11 times

Last updated: Nov 14 '22