Send data from CloudFront to Axiom
Send data from CloudFront to Axiom using AWS S3 bucket and Lambda to monitor your static and dynamic content.
Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations.
Axiom built an easy way for you to send CloudFront logs to Axiom using AWS S3 bucket and Lambda. With this, you can observe your static and dynamic content and run deep queries on your CloudFront distribution logs efficiently and properly.
Prerequisites
- Create an account on AWS Cloud
- Sign up or log in to your account on Axiom
- In the Axiom UI, create a dataset and API token with ingest permissions for that dataset
Installation
Axiom CloudFront integration is available open source on GitHub. Select the stack you want to deploy and click launch stack.
There are two methods to send logs from CloudFront to Axiom using the launch stack:
- If you created or have an S3 bucket for your CloudFront data: In this launch stack, you don’t need to create an S3 bucket. You just need to add your Dataset Name and API Token.
- If you don’t have an S3 bucket created for your CloudFront data: This stack creates an S3 bucket for your CloudFront data, you also have to add your Dataset Name and API Token.
Configuration
- Create and configure your CloudFront distribution
- Select your origin domain.
- In Origin access, select use Legacy access identities and choose your Origin access identity. In your Bucket Policy, select Yes, update the bucket policy
- In your Standard logging option, select the On button so that your data is delivered to your S3 bucket.
- Click on Create Distribution and Run your Distribution.
- Back in your Axiom dataset you’ll see your CloudFront distribution logs
Was this page helpful?