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

# Elasticsearch

CData Sync アプリケーションからElasticsearch コネクタを使用して、Elasticsearch からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## Elasticsearch コネクタを追加

Sync でElasticsearch のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：

<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**データソース**タブをクリックして
  **Elasticsearch** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして Elasticsearch コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>

新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。

## Elasticsearch への認証

After you add the connector, you need to set the required properties.

* **Server:** Enter the host name or IP address of your Elasticsearch REST server. You can specify multiple nodes in a single cluster, also. However, such nodes must be able to support REST API calls.
* **Port:** Enter the port number for the Elasticsearch REST server. The default port value is **9200**.
* (Optional) **Aliases Filter:** Enter a comma-separated list of alias names or filters that you want to use to filter aliases that are exposed as views.
* (Optional) **Indices and Data Streams Filter:** Enter a comma-separated list of index and data stream names or filters.

CData Sync supports authenticating to Elasticsearch in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**None**](#none)
* [**Basic**](#basic)
* [**Negotiate**](#negotiate)
* [**Aws Root Keys**](#aws-root-keys)
* [**Aws IAM Roles**](#aws-iam-roles)
* [**API Key**](#api-key)

### None

認証なしで接続するには、**Auth Scheme** で**None** を選択します。追加のプロパティは必要ありません。

### Basic

To connect with your user credentials, set the following properties:

* **Auth Scheme:** Select **BASIC**.
* **User:** Enter the username that you use to authenticate to your Elasticsearch account.
* **Password:** Enter the password that you use to authenticate to your Elasticsearch account.

### Negotiate

Kerberos 資格情報で接続するには、次のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***Negotiate** を選択。</li>
<li>\*\*Kerberos KDC：\*\*認証に使用するKerberos Key Distribution Center（KDC）サービスを入力。</li>
<li>\*\*Kerberos Realm：\*\*認証に使用するKerberos レルムを入力。</li>
<li>\*\*Kerberos SPN：\*\*Kerberos ドメインコントローラーのサービスプリンシパル名（SPN）を入力。</li>
<li>（オプション）\*\*Kerberos Keytab File：\*\*Kerberos プリンシパルと暗号化キーのペアを含むキータブファイルへのパスを入力。</li>
<li>（オプション）\*\*Kerberos Ticket Cache：\*\*MIT Kerberos 資格情報キャッシュファイルへの完全パスを入力。Sync は指定されたキャッシュファイルを使用して、Elasticsearch への接続に必要なKerberos チケットを取得します。</li></ul>

### AWS Root Keys

アカウントのルート認証情報で接続するには、次のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***AwsRootKeys** を選択。</li>
<li>\*\*AWS Access Key：\*\*Amazon Web Services（AWS）アカウントのアクセスキーを入力。この値は、AWS のセキュリティ認証情報ページで確認できます。</li>
<li>\*\*AWS Secret Key：\*\*AWS アカウントのシークレットキーを入力。この値は、AWS のセキュリティ認証情報ページで確認できます。</li></ul>

* **AWS Region:** Select the region that hosts your Amazon Web Services. The default region is **NORTHERNVIRGINIA**.

### AWS IAM Roles

To connect with your IAM user credentials, specify the following properties:

* **Auth Scheme:** Select **AwsIAMRoles**.
* **AWS Access Key:** Enter your Amazon Web Services (AWS) account access key. You can locate this value on your AWS security credentials page.
* **AWS Secret Key:** Enter your AWS account secret key. You can locate this value on your AWS security credentials page.
* **AWS Role ARN:** Enter the Amazon Resource Name (ARN) for the role with which you want to authenticate.
* **AWS Region:** Select the region that hosts your Amazon Web Services. The default region is **NORTHERNVIRGINIA**.
* (Optional) **AWS External Id:** Enter the unique identifier that is required when you assume a role in another account.

### API Key

To connect with an API key, specify the following properties:

* **API Key:** Enter the API key that you use to authenticate to Elasticsearch.
* **API Key Id:** Enter the API key that you use to authenticate to Elasticsearch.

## 接続を完了する

To complete your connection:

1. Specify the following properties:
   * **Use SSL:** Select whether you want to enable Secure Sockets Layer (SSL). By default, the **Enable** checkbox is not selected.
   * (Optional) **Data Model:** Select the data model that you want to use to parse Elasticsearch documents and generating the database metadata. The default data model is **Document**.
   * (Optional) **Expose Dot Indices:** Specify whether you want to expose dot indices as either tables or views. These indices have names that begin with "." (dot). The default option is **False**.
2. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
3. Click **Create & Test** to create your connection.

## 詳細について


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.