Ask Your Question

Revision history [back]

To search CloudWatch logs to identify successful Lambda executions, follow these steps:

  1. Log in to the AWS Management Console and navigate to the CloudWatch service.

  2. From the CloudWatch dashboard, select "Logs" from the left-hand navigation menu.

  3. Click on the log group that contains the logs for the Lambda function you want to search.

  4. Select the log stream for the Lambda function that you want to search.

  5. Type the search query in the search bar and click the search button.

  6. CloudWatch will display the logs that match the given search query.

  7. To identify successful Lambda executions, look for log entries that indicate a successful completion of the Lambda function. This could include messages such as "Lambda function ran successfully," "Completed execution with status code 200," or "Function execution succeeded."

  8. You can also filter the logs to show only successful executions by using search terms such as "REPORT" or "Duration:" followed by the execution time.

  9. Once you have identified successful Lambda executions, you can use this information to analyze performance trends, troubleshoot issues, and optimize your Lambda functions.