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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则