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
demandé il y a 2 mois196 vues
1 réponse
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
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions