Menu
Amazon API Gateway
Developer Guide

View API Gateway Log Events in the CloudWatch Console

To view logged API requests and responses using the CloudWatch console

  1. In the navigation pane, choose Logs.

  2. Under the Log Groups table, choose a log group of the API-Gateway-Execution-Logs_{rest-api-id}/{stage-name} name.

  3. Under the Log Streams table, choose a log stream. You can use the timestamp to help locate the log stream of your interest.

  4. Choose Text to view raw text or choose Row to view the event row by row.

Note

CloudWatch lets you delete log groups or streams. However, you should refrain from deleting API Gateway API log groups or streams and let API Gateway manage these resources. Manually deleting log groups or streams may cause API requests and responses not logged. If that happens, you can delete the entire log group for the API and redeploy the API. This is because API Gateway creates log groups or log streams for an API stage at the time when it is deployed.

Also failed requests due to throttling (429) or access (403) errors are not logged and will not be included in the report.