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

已提問 3 個月前檢視次數 124 次
1 個回答
2
已接受的答案

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
已回答 3 個月前
profile picture
專家
已審閱 2 個月前
profile pictureAWS
專家
已審閱 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南