> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Redshift をデスティネーションとして使用する

> Kameleoon の実験露出イベントを Amazon Redshift データベースにストリーミングし、キャンペーン結果の集中分析とレポートを可能にします。

Amazon Redshift 統合を使用すると、キャンペーン結果を Redshift データベースに保存し、分析とレポートを容易に行えます。

**主なメリット:**

* キャンペーン結果を簡単に集中保存して分析できます。
* 安全なストレージと合理化されたデータ転送の恩恵を受け、プロジェクト ID だけで意思決定に必要なデータにアクセスできます。

<Note>
  データウェアハウス統合は、当社の Web Experimentation および Feature Experimentation モジュールのプレミアムアドオンとして利用できます。詳細については、カスタマーサクセスマネージャーにお問い合わせください。
</Note>

[プロジェクトで Amazon Redshift 統合を有効化](./setting-up-amazon-redshift)した後、**Use Amazon Redshift as a destination** を有効化すると、訪問者が Kameleoon 実験の 1 つに露出するたびに、Amazon Redshift アカウントにシームレスにイベントを送信できます。

<Frame>
  ![](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/integrations/data-warehouses/amazon-redshift/use-amazon-redshift-as-a-destination/Capture-decran-2025-05-26-a-15.05.13-1536x246.png)
</Frame>

## Amazon Redshift をデスティネーションとして有効化する

Amazon Redshift をデスティネーションとして有効化するには:

1. **Use Redshift as a destination** をクリックします。
2. クラスタタイプを選択します: **Provisioned** または **Serverless**。

<Frame>
  ![](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/integrations/data-warehouses/amazon-redshift/use-amazon-redshift-as-a-destination/Capture-decran-2025-06-02-a-14.45.25-1536x1243.png)
</Frame>

* **Provisioned** クラスタタイプの場合、以下を提供する必要があります:
  * **Redshift cluster ID:** Amazon Redshift クラスタに関連付けられています。このクラスタ ID は、キャンペーン結果を Redshift 内の正しいデスティネーションに送信するための重要なコンポーネントです。
  * **S3 bucket name:** Redshift への定期的なバルクロードの前にストリーミングされたイベントをステージングするために使用される Amazon S3 バケットの完全な名前。提供する AWS ロールに付与されているポリシーで、このバケットへのアクセスを付与する必要があります。
  * **Redshift AWS region:** ソース Redshift クラスタが存在するリージョンコード。このコードは AWS コンソールで確認できます。例: `us-west-2`。
  * **Database:** 取り込み対象のデータを含む Redshift データベースの名前。
* **Serverless** クラスタタイプの場合、以下を提供する必要があります:
  * **Redshift serverless workgroup:** ワークグループの名前。
  * **S3 bucket name:** Redshift への定期的なバルクロードの前にストリーミングされたイベントをステージングするために使用される Amazon S3 バケットの完全な名前。提供する AWS ロールに付与されているポリシーで、このバケットへのアクセスを付与する必要があります。
  * **Redshift AWS region:** ソース Redshift クラスタが存在するリージョンコード。このコードは AWS コンソールで確認できます。例: us-west-2。
  * **Database:** 取り込み対象のデータを含む Redshift データベースの名前。

## **Use Amazon Redshift as a destination** の機能

**Use Amazon Redshift as a destination** を有効化すると、すべての Kameleoon 実験露出イベントが Amazon にストリーミングされます。

イベントは `{database}` (データが取り込まれる Redshift データベースの名前) の `kameleoon_events` スキーマに保存されます。これは [セットアップ](./setting-up-amazon-redshift) 時にセットアップした AWS データベースで、Kameleoon ユーザーに書き込みアクセスが付与されているものです。データは `kameleoon_experiment_event` という名前のテーブルに保存されます。

このテーブルの SQL スキーマは以下のとおりです:

```sql theme={null}
CREATE TABLE  kameleoon_experiment_event (
     nonce  BIGINT  PRIMARY KEY, -- unique identifier of the event
     timestamp  BIGINT, -- timestamp in millis of the event
     visitor_code  VARCHAR(255), -- Kameleoon visitor identifier
     custom_visitor_id  VARCHAR(255), -- Visitor identifier used by your company
     experiment_id  BIGINT, -- Kameleoon id of the experiment
     variation_id  BIGINT -- Kameleoon id of the variation
 );
```

`custom_visitor_id` は、設定されている場合、[クロスデバイス調整カスタムデータ](../../../../developer-docs/cross-device-experimentation) から読み取られます。

キャンペーンデータが Amazon に保存されることで、詳細な分析とレポートを実行できるようになります。Amazon のクエリ機能を活用して、収集されたデータから貴重な洞察を抽出し、キャンペーンとユーザー体験を最適化するためのデータドリブンな意思決定を支援できます。

Kameleoon のキャンペーン結果を Amazon に集約することで、Amazon データベースの充実に貢献し、さまざまな分析およびビジネスインテリジェンスの目的で使用できるユーザーデータの包括的なリポジトリになります。
