Setup AWS Kinesis Logging for AWS Pinpoint
Today we will learn, How to set up AWS Kinesis logging for your AWS Pinpoint service. This may be needed, when you want to create your custom Pinpoint dashboard from the logs.
Lets start the configuring the logging step by step:
A. Sign in to the Amazon Kinesis console in the same region that you are using for Amazon Pinpoint.
B. Navigate to the "Data Firehose" from the left-hand sidebar.
C. Click on "Create delivery stream". Provide a delivery stream name, scroll down and click on "Next".
D. You can leave the configuration as it is, and click on "Next". Select the destination as "Amazon S3" and provide the S3 bucket name or create a new bucket where the logs would be stored. Then, again click on "Next".
E. Click on the "Create new or choose" IAM role button, a separate window will be opened. For IAM Role: choose to create a new IAM Role and for Role Name: you can provide any role name. Then click on "Allow".
F. You will be navigated back to the previous window, and now click "Next". Finally, click on the "Create delivery stream" button. You would see that the delivery stream is created in the Kinesis firehose.
G. Now, sign in to the Pinpoint console.
H. Navigate to the project you are using, then click on "Settings" from the left-hand sidebar. Then navigate to the "Event stream".
I. Click on "Edit", and then click on "Stream to Amazon Kinesis" and check the radio button for "Send events to an Amazon Kinesis Data Firehose stream". Refresh and choose the Kinesis stream that you just created.
J. Under "IAM role", click on "Automatically create a role" and provide any name of the role. Finally, click on "Save". The stream to Amazon Kinesis is now enabled.
K. Then to retrieve the logs, please sign in to the Amazon S3 console and navigate to the S3 bucket that you associated with the Kinesis stream.
L. It would take around 5 minutes for the logs to populate and get stored in the S3 bucket. Please refresh the bucket, you would see that the folder is created.
M. Now, you can create your custom dashboard using other AWS service like Amazon QuickSight from this logs.