Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pior/mixpanel-s3

Extract Mixpanel raw events and upload to S3
https://github.com/pior/mixpanel-s3

Last synced: 2 days ago
JSON representation

Extract Mixpanel raw events and upload to S3

Awesome Lists containing this project

README

        

# mixpanel-s3

> Extract Mixpanel raw events and upload to S3

## Features

- Static binary (Go)
- Download raw events from the Mixpanel data api
- Upload on S3
- On the fly Gzip compression
- Event selection
- Split by events
- Retry download (5 times, wait 60s before retrying)

## Install

go install github.com/pior/mixpanel-s3/mixpanel-s3

## Usage

usage: mixpanel-s3 --key=XXXXXX --secret=XXXXXX --bucket=BUCKET []

Extract Mixpanel raw events and upload to S3

Flags:
--help Show help.
-f, --from="2015-03-25"
Extract from this date
-t, --to="2015-03-25"
Extract to this date
-e, --event=EVENT Extract only this event
-k, --key=XXXXXX Mixpanel api key
-s, --secret=XXXXXX Mixpanel secret key
-b, --bucket=BUCKET S3 bucket name
-p, --prefix=PREFIX S3 key prefix
--split Split by event name
--version Show application version.

> Note: use the TMPDIR environment variable to control where mixpanel-s3 will
> stage the raw events

## Configuration

Mixpanel and AWS credentials can be provided as command line arguments or environment variables

### Environment Variables

- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- MIXPANEL_API_KEY
- MIXPANEL_SECRET_KEY
- S3_BUCKET
- S3_PREFIX
- TMPDIR