S3 Event Logs

Astronomer Clickstream makes it easy to send your data to an Amazon S3 bucket. Once you follow the steps below, your data will be routed through our platform and pushed to Amazon S3 in the appropriate format.

What is Amazon S3 and how does it work?

Amazon Simple Storage Service (S3) is a scalable web-based cloud storage service that allows you to store and retrieve data from anywhere at anytime. It offers an extremely flexible set of storage management and administration capabilities, supporting:

Getting data into your S3 bucket natively requires quite a bit of developer work; you’d need to use an analytics tool like Google Analytics and write an ETL pipeline to bring the data from that analytics tool to S3. This is inefficient in that it utilizes your engineering resources and dumps pre-formatted data into your S3 bucket rather than raw data.

Why send data to Amazon S3 using Astronomer Clickstream?

Getting data to Amazon S3 ultimately leaves you with data that was designed to power reports within an analytics tool, not the raw data you need for custom analysis.

When you enable the Amazon S3 integration, raw data from Astronomer Clickstream automatically gets copied into your Amazon S3 bucket. Everything is stored as line-separated JSON objects, which each contains data from a single API called made to our platform.

Astronomer spares you the headache of writing custom ETL pipelines to get your data into an S3 bucket.

Amazon S3 Side

Once you create the bucket, create a folder labeled Astronomer-logs inside of it.

Add our S3 Bucket Policy

Add the following S3 bucket policy, which will grant Astronomer permission to copy events into your S3 bucket using s3:PutObject. In the Resource: line of each of the two policies below, swap out YOUR_BUCKET_NAME for the exact name of your S3 bucket, but keep the /* on the end.

Astronomer Side

Configure a new S3 connection in your Astronomer dashboard and give your new connection a unique name. Click Save to activate your pipeline.

Things to Note:

AWS Region (required)
The region in which your S3 bucket resides. You can find a list of regions for Amazon S3 under the “Region” column here. Enter your region exactly as it’s shown (i.e. us-east-1).

Server Side Encryption (optional)
AWS S3 supports server side encryption. If your bucket policy requires the server side encryption header to be set, you can specify that here. Example values for this field are ‘AES256’ or ‘aws:kms’.

Path Prefix (optional)
The file path at which your S3 events will be stored.