# Connect kafka-elasticsearch connector to an alias, es version 7.6.1

**URL:** <https://discuss.elastic.co/t/connect-kafka-elasticsearch-connector-to-an-alias-es-version-7-6-1/373199>\
**Category:** Elastic Search\
**Created:** [January 14, 2025, 8:33pm UTC](https://discuss.elastic.co/t/connect-kafka-elasticsearch-connector-to-an-alias-es-version-7-6-1/373199 "2025-01-14T20:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yasir\_Hassan](https://avatars.discourse-cdn.com/v4/letter/y/779978/32.png) [@Yasir\_Hassan](https://discuss.elastic.co/u/Yasir_Hassan)\
**Post date:** [January 14, 2025, 8:33pm UTC](https://discuss.elastic.co/t/connect-kafka-elasticsearch-connector-to-an-alias-es-version-7-6-1/373199/1 "2025-01-14T20:33:11Z")

</div>

I want to build an ingestion pipeline that takes my lidar data from the kafka topic and ingests it to the current active index.

I have created an index\_template that match my index name and has the required mappings (convert timestamps, ...), and has the following settings:

```auto
{
  "index": {
    "lifecycle": {
      "name": "lidar_ilm_policy",
      "rollover_alias": "lidar_alias"
    }
  }
}

```

I have also created the policy that handles the rollover for my index (i.e. lidar-\*), the policy creates an index every 5 minutes, and delete the old every 10 minutes.

How to configure the kafka connector to always point to the the alias?  
Let's assume the connector have the following initial config:

```auto
{
    "connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
    "tasks.max": "12",
    "topics": "lidar_object_events",
    "connection.url": "<url>",
    "type.name": "_doc",
    "schema.ignore": "true",
    "key.ignore": "true",
    "flush.size": "10",
    "flush.timeout.ms": "10000",
    
}

```

What needs to be added in the connector's config? is this process doable in the first place?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 11, 2025, 8:33pm UTC](https://discuss.elastic.co/t/connect-kafka-elasticsearch-connector-to-an-alias-es-version-7-6-1/373199/2 "2025-02-11T20:33:58Z")

</div>

Closed on February 11, 2025, 8:33pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
