Amazon CloudFront Data Transfer Per User

0

A customer is looking to get a report with usage information (data transfer) on their contents that are getting delivered from a single Amazon CloudFront Distribution. They have production systems which are used by multiple institutions and are looking to get a report on data transfer from CloudFront for each institution.

AWS
已提問 4 年前檢視次數 241 次
2 個答案
0
已接受的答案

If its not practical to give each user their own distribution, the option would be to analyse the CloudFront access logs to calculate the data delivered to each user. You would need something to filter on user - could be a specific URI portion, but most likely an identifying cookie. The log field sc-bytes provides the amount of data delivered from CloudFront to the user for the HTTP response which won't include all the data delivered (for example, it won't include the TLS negotiation data), would be close to it.

AWS
專家
已回答 4 年前
0

Hi! In order to calculate the data transfer cost associated with CloudFront, there are two steps that need to happen.

  1. Enable CloudFront access logs as a way to gather and record the associated traffic which is linear to the data transfer cost
  2. Next, based on the service being used, query the logs to find the total associated cost with data transfer. For example, if we are using S3, an appropriate service that can be used would be Amazon Athena

Hope this helps!

Nitin_K
已回答 9 個月前

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

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

回答問題指南