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
posta 4 anni fa241 visualizzazioni
2 Risposte
0
Risposta accettata

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
ESPERTO
con risposta 4 anni fa
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
con risposta 9 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande