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
gefragt vor 4 Jahren241 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 4 Jahren
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
beantwortet vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen