How do I identify which file was responsible for generating an HTTP 4XX error?

0

I've been getting a lot of 4xx errors in CloudFront. By analyzing your documentation, I have identified that this behavior may be related to Origin's caching configuration and/or the inclusion of cache control metadata.

In the cache statistics, represented in the attached images, I show the volume of errors received in the last 24 hours, in just one Origin, as an example of the error. The "server access logging" setting is disabled in the bucket configured as the distribution's Origin. Is there any way I can retrieve this information, considering that it is not possible for me to enable this feature?

My problem is: I have almost 1 TB of data in my Origin, how can I identify which file was responsible for generating this error, in response to the client's request?

HTTP status codes - Daily HTTP status codes - Hourly Server Access Logging

demandé il y a 3 mois124 vues
1 réponse
2
Réponse acceptée

Hi Fernando -

You will need to enable access logs if you have not already. In those access logs, you should be able to find where those 4xx errors are coming from. If you need some help querying the logs, Athena is a good choice.

If you don't have the ability to turn on the logging, you may have to work with whoever owns IAM policies in your account or whoever owns the distribution.

profile pictureAWS
répondu il y a 3 mois
profile picture
EXPERT
vérifié il y a 2 mois
profile pictureAWS
EXPERT
vérifié il y a 3 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