How can I log byte-range information of Byte-Range fetches

0

Hi, I need to log S3 bucket access (PutObject, GetObject operations) history. One important feature I have to log in to the logging result is Byte-Range information of the GetObject operations when they are byte-range fetches.

I tried two logging options that AWS provides: S3 Server Access Logging and CloudTrail. However, neither of them actually stores Byte-Range information when I tested with byte-range fetch operations. I think this information should be delivered to the S3 server in the requests' HTTP header, but it seems like even CloudTrail does not store that part of the header.

Please let me know if there is anything I can try more or any solution to log this enough information.

Thanks!

Hojin
已提問 10 個月前檢視次數 294 次
1 個回答
1

Hi,

  1. Using S3 Server access logs, you can look for the Bytes Sent field in your GetObject operations. https://docs.aws.amazon.com/AmazonS3/latest/userguide/LogFormat.html

  2. Using Athena, you should able to analyze the contents of the logs. https://repost.aws/knowledge-center/analyze-logs-athena

Thank you,

AWS
已回答 10 個月前

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

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

回答問題指南