Did you find this helpful?
S3 Event Archiving
PlayFab allows you to archive the entire event flow using Amazon S3 Bucket. This guide shows step-by-step how to configure event archiving from scratch. Each step is represented as a picture followed by description.
Configuring Amazon S3 Bucket
Once you have created Amazon account, navigate to "Services" (1) and select "S3" (2)
On S3 page, you will have an overview of all your buckets and you will notice a button for creating new bucket. Click it.
You will have to go though 4-step wizard. Step 1 requires you to assign unique, DNS-compliant name for your bucket (1). Make sure to have that name somewhere for copy/paste. We will need it while configuring PlayFab side. When you are done, hit "Next" (2).
Step 2 offers you to optionally add versioning, logging and tagging for your bucket. Click "Next" (1).
During Step 3, ensure that you have Read/Write access (1) for objects. Hit "Next" (2).
During Step 4, double check your settings and click "Create Bucket" (1).
Configuring Amazon Access
In order to archive events, you will need to give us access the bucket on your behalf. This is done by means of Access Key.
Double check that you have your newly created bucket in the list of S3 services (1). Then click your account name in the top right corner (2) and select "My Security Credentials" (3).
Locate access key list and "Create New Access Key" button. Click it.
Expand access key data (1). Save Access Key ID (2) and Secret Access Key (3). Make sure they are available for copy/paste. We will need it while configuring PlayFab side. Hit "Close" (4).
Configuring PlayFab Event Archiving
When S3 bucket is ready, it's time to set up PlayFab side of things. We need to pass access data and bucket name to PlayFab to enable event archiving.
To access PlayFab Event Archive, select "Analytics" in the sidebar panel (1). Then select "Event Archive" tab (2). Finally, click "Update Settings Button" (3).
Opened page will offer you a bunch of settings:
- Amazon S3 bucket name (use the one you have created while configuring Amazon S3 Bucket).
- Prefix is the root folder under which PlayFab will store all the relevant data.
- Access Key ID (use the one you have obtained while configuring access to Amazon Account)
- Secret Key (use the one you have obtained while configuring access to Amazon Account)
- Click "Save Settings" when everything is in place
PlayFab should present you with nice page indicating that Event Archiving is enabled.
Make sure to post some events and then check your bucket on Amazon portal. Soon enough, you will see new compressed JSON streams will appear, nicely split by title, event name, year, month and day.