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
asked 4 years ago230 views
2 Answers
0
Accepted Answer

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
EXPERT
answered 4 years ago
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
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions