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
asked a month ago183 views
1 Answer
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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions