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달 전195회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠