---
title: Data Ingestion - S3
slug: asianpaints/data-ingestion-s3
description: >-
docTags: 
createdAt: 2023-10-26T16:43:53.716Z
---

:::hint{type="info"}
Use your Marketer profile for this exercise.  We will learn how to set up a data flow to import CSV files from an S3 bucket.   &#x20;
:::

## Connect to Amazon S3

- For this exercise, we'll be using **HOL S3 Bucket&#x20;**&#x41;mazon S3 connection.  The connection to this bucket has already been configured for you. &#x20;

## Ingest data from Amazon S3

For this exercise, we have uploaded **sample\_crm.csv &#x20;**&#x66;ile to Amazon S3 bucket. Follow the steps below to select the file for ingestion.

1. In the left rail, click on **Connections** and choose **Sources.&#x20;**&#x59;ou’ll then see the Sources Catalog.
2. Under **Categories**, select **Cloud storage**, click the **Add Data** on the **Amazon S3** card.
3. Click **Existing account&#x20;**&#x61;nd select the **HOL S3 Bucket.&#x20;**&#x43;lick **Next**.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/HOYbO8_LCSeHuEKdKyG2V_image.png)

4\. Click **sample\_crm.csv&#x20;**&#x61;nd select **Delimited&#x20;**&#x66;ro&#x6D;**&#x20;Data format.&#x20;**&#x53;ample records from the csv will be dsiplayed. Click **Next.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/o6ovhOjxyEnGqzFayjHBi_image.png)

5\. Click **New dataset&#x20;**&#x61;nd set the **Output dataset name** to `[your initials] - CRM Profile Dataset`. Select the `Demo System - Profile Schema for CRM (Global v1.1)` from **Schema&#x20;**&#x64;ropdow&#x6E;**.&#x20;**&#x53;e&#x74;**&#x20;Dataflow name&#x20;**&#x74;o `[your initials] - CRM Profile Dataflow`. Click **Next.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/vOf_nu2Nws78yAtfBsZbo_image.png)

6\. Fields from csv file are automatically mapped to the selected schema using ML algorithms, however it may not always get it right.  Review the values from the screenshot below and fix any mappings that need updating by clicking on the **Target Field** and selecting the right option from the **Target Schema** on the right.   Click **Next&#x20;**&#x6F;nce you're happy the fields are correctly mapped.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/dy1V2zNxkeRi-Xr_7SPB2_image.png)

7\.  The next step is to set up the scheduling.  Batch based source connectors can check for new data as frequently as every 15 mins, for this exercise however we'll just set it to run once.  Leave the start time as is and click **Next.&#x20;**&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/n8hMZ0-lPwdUZLfpstiPc_image.png)

8\. Review and click **Finish&#x20;**&#x74;o create your dataflow.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/Y_Pdqj9Np5EPvmixTgVYF_image.png)

9\. The newly configured dataflow will be displayed under the Amazon S3 source connector.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/1n8jSdawFaC3oMOHRJ-_b_image.png)

10\. Click into the dataflow name to see details of individual executions:

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/Q2LbP6aYKi_xIg81FYQph_image.png)

:::hint{type="info"}
The dataflow will start asynchronously according to the schedule but may take a minute or two to kick off the first execution.&#x20;
:::

##

## Monitoring Ingestion

Data ingestion can be monitored from the **Monitoring** menu item under **Data Management&#x20;**&#x69;n the left hand navidation.  The **Dashboard&#x20;**&#x73;hows an overview of data ingested over the last 24 hours.   You can update this to show up to the last 30 days. &#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/pMY28K25MfVqARi91mSO6_image.png)

You can see down the bottom details of each source or dataflow and filter to only show failures if desired.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/PKoAV7zBVZaNR9Et6Fmr3_image.png)

Each batch is listed on the Batch end-to-end tab and from here you can see how many records were successfully ingested as well as how many made it into the profile store and identity graph.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/osay7hN86Wqo1obw_l7Ah_image.png)

Clicking into the individual batch shows more details as well as the error diagnostic if the batch failed.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/jCya5TcDiRsqvoJsPxbwI_image.png)

The **Streaming end-to-end&#x20;**&#x4D;onitoring tab shows the ingestion rate for data being ingested via streaming source connectors like Amazon Kinesis and Azure event hubs, or being pushed directly to AEP's HTTP API inlets.   Note that this data is streamed and processed into the profile store one record at a time but the monitoring will show it as micro batches.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/PEl1o0B0hWqb3MmyB4ha6_image.png)

:::hint{type="success"}
Congratulations, you've completed the exercise on Data Ingestion.
:::

