[英]AWS Gateway and CloudWatch logs
I seem to have an issue with seeing logs in AWS CloudWatch for my AWS Gateway.在 AWS CloudWatch 中查看我的 AWS 网关的日志时,我似乎遇到了问题。
I did the following:我做了以下事情:
Now I can see a Log Group that seem to correspond to my AWS Gateway and Log Streams but all of them are empty.现在我可以看到一个日志组,它似乎与我的 AWS 网关和日志流相对应,但它们都是空的。
I think I'm missing something here.我想我在这里遗漏了一些东西。
Thanks, Michal谢谢,迈克尔
Set up API Logging Using the API Gateway Console使用 API Gateway 控制台设置 API 日志记录
To set up API logging, you must have deployed the API to a stage.要设置 API 日志记录,您必须已将 API 部署到阶段。 You must also have configured an appropriate CloudWatch Logs role ARN for your account.您还必须为您的账户配置适当的 CloudWatch Logs 角色ARN。
For more information about CloudWatch metrics, see Monitor API Execution with Amazon CloudWatch .有关 CloudWatch 指标的更多信息,请参阅使用 Amazon CloudWatch 监控 API 执行。
Note: You can enable execution logging and access logging independent of each other.注意:您可以启用彼此独立的执行日志记录和访问日志记录。
Reference: Set Up CloudWatch API Logging in API Gateway参考: 在 API Gateway 中设置 CloudWatch API 日志记录
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.