AWS S3 Export


The data export feature can export your CleverTap event data to your AWS S3 bucket in bulk. You can use this for analysis in Business Intelligence (BI) tools or storage in your data warehouse for analysis in the future.


Feature Availability

This capability is a part of the CleverTap for Enterprises plan. To activate this for your account, contact your sales account manager.


This section includes information about the setup steps involved to enable this feature for your account.

  1. Create an AWS S3 Bucket
  2. Create an API Key for Your S3 Bucket
  3. Add Your S3 Bucket Details to CleverTap

Create an AWS S3 Bucket

To create an AWS S3 bucket:

  1. Log in to your AWS account, then search for S3 in the AWS services box.
  2. Select S3 from the search results.
On clicking, the *Bucket* page displays.
  1. Click + Create bucket. On clicking, the Create bucket page displays:
  1. Enter a bucket name, region, logging, versioning, and encryption preferences.


Recommendation for Setup

For this integration, you need not modify the default settings; however, you must check your internal organization's policies to verify if you need to modify any of these settings.

Based on your CleverTap account settings, we host your data in Europe (EU), the United States (US), Singapore (SG), or India (IN). To identify the region of your account and the corresponding region that you must select when configuring the bucket settings, refer to the following table:

CleverTap Dashboard URLRegionAWS S3 Bucket Region (Ireland) eu-west-1 Pacific (Mumbai) ap-south-1 West (Oregon) us-west-2 Pacific (Singapore)
ap-southeast-1 KoreaAsia Pacific (Seoul)
  1. Click Create bucket. On successful bucket creation, the following message displays in the snackbar at the top:

The bucket you just created now shows up on your S3 console. We recommend you note down the name of your new bucket as you will need it for the next step.

Create an API Key for Your S3 Bucket

This section demonstrates the creation of an AWS API key that has write access to the bucket we created in the above step. CleverTap uses this API key to export data to your S3 bucket.

  1. Click on your account name on the top right of the AWS console.
  2. Click Security Credentials.
  1. Select Users from the left navigation and click Add user.

On clicking, the Add user page displays.

  1. Enter the User name and select the Programmatic access checkbox.
  2. Click Next:Permissions.

On clicking, Set permissions page displays.

  1. Click Create group under Add user to group tab.

On clicking, Create group page displays.

  1. Click Create policy. On clicking, Create policy page opens in a new tab.
  1. Select the JSON tab and then paste the JSON code given below in the box.
    "Version": "2012-10-17",
    "Statement": [
            "Effect": "Allow",
            "Action": [
            "Resource": [
            "Effect": "Allow",
            "Action": [
            "Resource": [
  1. Replace clevertap-example in the JSON code with the name of the S3 bucket you created in the above step.
    The permissions defined in this policy allow CleverTap to get information about your bucket and upload files to it.


AWS API Access Policies

IP Whitelisting is not supported with S3 exports. For more information about AWS API access policies, refer to this post from the AWS blog.

  1. Click Next: Tags and then click Next: Review. On clicking, the Create policy page opens.
  2. Enter the policy Name and click Create policy.

On successful policy creation, the following message displays in the snackbar at the top:

  1. Go back to the Create group page (opened in step 6), search for the policy you just created, and assign it to the new group by selecting the checkbox next to it.
  2. Click Create group. On clicking, the Add user page displays.
  1. Click Next: Tags and then click Next: Review.
  1. Click Create user.

On successful user creation, the following page displays. You will see your Access key ID and the Secret access key.


These credentials allow CleverTap to upload files to your S3 bucket. We recommend you note down these values as you will require them for the next step. Otherwise, you can also click Download .csv to save these details for future use.

Add Your S3 Bucket Details to CleverTap

To add your S3 bucket details to Clevertap, perform the following steps:

  1. Log in to your CleverTap account.
  2. Navigate to Settings > Partners > Exports.
  3. Click the AWS Amazon icon and select S3 from the AWS Connections dropdown.
  4. Enter your bucket name from the Create an AWS S3 Bucket section above.
  5. Enter your Access key ID and the Secret access key obtained earlier.

Create a New Data Export

To create a new data export, perform the following steps:

  1. Navigate to Settings > Partners > Exports > Activity Log.
  2. Click + Create Export.

On clicking, Create an export popup will display.

  1. Define the following settings and click Create export:
  • Select an export partner: Select AWS S3 from the dropdown list.
  • Export details: Select the following appropriate export-related options: the type of export (user profile or events), export frequency, and export format. For more information, refer to Export Details.

Export Details

Export Type

  • All user events: This exports data for all events that have been defined, which include System and Custom events.
  • Select events: This exports specific events you want to export.
  • All user profiles: This exports all your user profile data.

Export Frequency

  • One time: Single export for the export type selected. You can export data up to the last 60 days.
  • Recurring: Set up a recurring export that exports all the new events/user profiles captured in the last window. You can export as frequently as every 4 hours and up to once every 24 hours.

Export Format

  • JSON
  • XML
  • CSV
  • Parquet


Exception for One-time Profile Export

If there is a scheduled recurring profile export, you must stop it to run a one-time profile export.


CleverTap will now process the export. You can refresh the Activity Log page to see the current status of the export. After the export is complete, the status for that export is displayed as Done.


To confirm your event data was successfully exported:

  1. Log in to your AWS account and navigate to the S3 console.
  2. Search your Bucket from the Buckets page and then click the bucket name.
  3. Copy the Request ID from the activity log and search with that ID. You should see your respective file there.

For more information, refer to the following section.

Export Format

This section provides information about file format and name format of the files being exported to the S3 bucket.

File Name Format

The example below shows the file name format for data exports:

  • Export request ID: The export request ID is generated when you create a request in the CleverTap dashboard.
  • Timestamp of export run: The timestamp is when the export was run.
  • Event name: The event name is an event type that is included in the file.
  • File index: For larger exports, we chunk the data across multiple files. The file index notes what file number in the file series it is. We have limited file sizes to 100 MB chunks to make them more consumable.
  • Database ID: The database ID of the CleverTap from where the file was exported.
  • File format: The format of the file exported to the S3 bucket.
<export request id>-<timestamp of the export run>-<event name>-<yyyymmdd>-<file index>-<database-id>.<file format>.gz

File Data Format

Files are split by event names for event exports and each file will have all event data for the given period for the event.


The first line of the file contains the event name. After the first line, each line in JSON describes the timestamp, object id, and event properties.

    "profile": {
        "identity": "dqsndckfk234"
    "ts": 20171109000015,
    "eventProps": {
        "ct_connected_to_wifi": "false",
        "ct_bluetooth_version": "ble",
        "ct_bluetooth_enabled": "false",
        "ct_sdk_version": 30107,
        "ct_latitude": -6.1975594,
        "ct_longitude": 106.52913,
        "ct_os_version": "5.1.1",
        "ct_app_version": "2.30.1",
        "ct_network_carrier": "3",
        "ct_network_type": "4G"


CSV files are comma-delimited and have each event in separate rows.



XML have the timeStamp, eventName, followed by eventProperties.

    <eventName>Export Custom Event</eventName>
        <all_identities>[email protected]</all_identities>
        <email>[email protected]</email>
            <key>CT Source</key>
            <value>Mens Watch</value>
            <key>Product name</key>
            <value>Casio Chronograph Watch</value>


Parquet have timestamp, eventName, and eventProperties for each event.


Parquet File Format

Parquet is an open source file format for Hadoop. Parquet stores nested data structures in a flat columnar format.