Use the oevents CLI to export data
Instructions on how to export Experimentation Event Export data using the Optimizely Experimentationoevents command line interface.
Theoevents CLI is written inbash and should run on macOS and most GNU or Linux distributions. See theGithub repository for detailed installation and usage instructions.
Prerequisites
- jq
- curl
- theAmazon AWS CLI (v2+)
Download
You can download a zipped directory containing theoevents CLIfrom the oevents Github repository.
Install
oevents is a bash script. To run it, you will need to make sure it is executable. Assumingoevents is in your working directory. You can do this with the following command:
$ chmod +x oeventsTo runoevents, specify the script's path explicitly (assumingoevents is in your working directory):
$ ./oevents helpOr you can add it to a directory in yourPATH environment variable.
$ sudo cp oevents /usr/local/bin/$ oevents helpGenerate a personal access token.
Generate a personal access token (PAT) within the Optimizely application by followingManage your API tokens documentation instructions.
Store your Personal Access Token in theOPTIMIZELY_API_TOKEN environment variable.
export OPTIMIZELY_API_TOKEN=<token>Explore and download your data
You can use theoevents CLI to acquire temporary AWS credentials.
oevents authExplore your data.
oevents ls \ --type events \ --date 2020-07-01Download your data.
oevents load \ --type decisions \ --start 2020-07-01 \ --end 2020-07-05 \ --experiment 12345📘
NoteThe date and time is in UTC.
Updated 2 months ago