---
title: Setup DataStream on Akamai Manually
description: "**Flumotion Smart Multi CDN** can provide extensive traffic analytics even if you still manage the domain directly on Akamai. To enable this, add **DataStream2** to your domain to deliver sampled traffic data to the platform. Prefer automation? See [**Automate with…"
url: "https://www.flumotion.com/docs/multiCDN/setup-datastream-on-akamai-manually/"
updated: "2026-09-09"
category: Guides / Support Procedures
---

# Setup DataStream on Akamai Manually

**Flumotion Smart Multi CDN** can provide extensive traffic analytics even if you still manage the domain directly on Akamai. To enable this, add **DataStream2** to your domain to deliver sampled traffic data to the platform.

Prefer automation? See [**Automate with Script**](https://www.flumotion.com/docs/multiCDN/setup-datastream-on-akamai-manually/#automate-with-script).

#### Process

In the **Akamai Control Center**, navigate to **Investigate > Common Services > DataStream**. Click **Create Stream** and choose **Delivery Products**.

#### Step 1 – Configuration

- In **Display Name**, enter a name for your stream. We recommend including the name of your property.
- Select the **Property Group**.
- Under **Latency Profile**, select **Optimized for faster latency**.
- Under **Include Properties**, select the property you need.
- Click **Next**.

#### Step 2 – Data Sets

Select the following data items:

- **Log information**
  - CP Code
  - Request ID
  - Request Time
- **Message exchange data**
  - Client IP
  - HTTP status code
  - Protocol type
  - Request host
  - Request method
  - Request path
  - Response Content-Length
  - Response Content-Type
  - User-Agent
  - Total bytes
- **Request header data**
  - Cookie
  - Referer
  - X-Forward-For
- **Network performance data**
  - Turn around time
  - Asnum
  - Time to first byte
- **Cache data**
  - Cache status
  - Breadcrumbs
- **Geo data**
  - Country/Region
  - City
  - State
  - Edge IP
- **Common media client data**
  - CMCD
- **Custom fields**
  - Custom field
- Under **Log file**:
- Set **Log format** to **Json**.
- Click **Next**.

#### Step 3 – Delivery

Under **Destination**:

- Set **Destination** to **Custom HTTPS**.
- In **Display Name**, enter a name for your stream. We recommend including the name of your property.
- Leave **Authentication** as **None**.
- In **Endpoint**, enter:

```
https://traffic-reporting.ioriver.io/public/akamai/:service_uid:/stats/akamai-:service_uid:_stats
```

- Replace `:service_uid:` with the value for your service. Contact your **Flumotion support representative** for details.
- Click **Validate & Save**.

Under **Delivery options**:

- Set **Push frequency** to **60 Seconds**.
- Set **Sampling rate** to **100%**.
- Click **Next**.

#### Step 4 – Summary

- Review the configuration.
- Click **Save stream**.

#### Configure the Akamai Property

Navigate to **CDN > Properties**. Select the property and click **New Version**.

In **Property Configuration Settings**, select the default rule.

Click **+Behavior** and select **Standard property behavior**:

- Find the **DataStream** behavior and click **Insert Behavior**.
- In the list of behaviors for the rule, find the **DataStream** behavior.
- Set **Stream version** to **DataStream2** and click **Enable**.
- Under **Stream names**, select the stream you created earlier.
- Set the sampling rate to **10%**.

Click **+Behavior** again and select **Standard property behavior**:

- Find the **Log Request Details** behavior and click **Insert Behavior**. In the list of behaviors for the rule, find the **Log Request Details** behavior:
  - Enable **Log Referer Header**.
  - Enable **Log User-Agent Header**.
  - Set **Cookie mode** to `???`.
    - `???`
  - Enable **Include Custom Log Field**.
    - `???`
  - Enable **Log Akamai Edge Server IP Address**.

Click **Save** and activate the new version.

#### Automate with Script

You can automate this setup — creating a **DataStream2** stream and updating the property behaviors — by downloading and running the script below.

**Script:** `setup_akamai_datastream2.py`

Current script location:

[https://providers-ioriver.s3.eu-central-1.amazonaws.com/setup_akamai_datastream2.py](https://providers-ioriver.s3.eu-central-1.amazonaws.com/setup_akamai_datastream2.py)

Example:

```
python3 setup_akamai_datastream2.py 
  --property-name <your_property_name> 
  --host <your_akamai_api_host> 
  --client-token <your_client_token> 
  --client-secret <your_client_secret> 
  --access-token <your_access_token> 
  --service-uid <your_service_uid>
```

The script creates or reuses the DataStream and updates the property behaviors on a new property version. You still need to activate that new version in Akamai.
