As we have seen in our first chapter, Amazon CloudFront is a content delivery web service that helps end users to distribute content with low-latency to their customers. Amazon CloudFront uses its edge locations that are spread across the world to deliver content. Requests originating from any place are served by the nearest edge location resulting in the desired low latency.
Now, say you are using Amazon CloudFront as the CDN service for your website and you want to know the access trends across the world for your website. Basically, you want to get the total request count, hit count, miss count, error count, per city per country. You want to be able to see how many bytes have been transferred per edge location. You also want to get the breakdown of all the requests on the basis of HTTP status codes. That is, for example, how many 404 errors were there.
So, our use case here is to get insights from Amazon CloudFront access logs analysis.