Is the request URL(/request path) logged by AWS amplify (Next.js) in Cloudwatch?

0

I have a next.js application deployed to AWS amplify and cloudwatch is enabled for this deployment. I see the logs in cloudwatch, however it only logs the billed duration in these logs but not the request URL that triggered the lambda function execution.

I would like to analyse and see which URLs are taking the most amount of time, but I am unable to do so since it looks like AWS simply does not log this information. Has anyone tried this before?

yp
已提问 2 个月前196 查看次数
1 回答
0

By default, AWS Amplify does not log the request URL (/request path) for Next.js applications in CloudWatch. To capture and analyze URLs with their performance metrics, you would need to implement custom logging within your Next.js app to explicitly send this data to CloudWatch Logs.

For setting up and customizing Amazon CloudWatch Logs for your server-side rendered (SSR) apps with AWS Amplify, refer to https://docs.aws.amazon.com/amplify/latest/userguide/ssr-CloudWatch-logs.html

profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则