# Elasticsearch Source connector failed

**URL:** <https://forum.confluent.io/t/elasticsearch-source-connector-failed/5825>\
**Category:** Kafka Connect\
**Created:** [18 August 2022 14:09 UTC](https://forum.confluent.io/t/elasticsearch-source-connector-failed/5825 "2022-08-18T14:09:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarindra](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Sarindra](https://forum.confluent.io/u/Sarindra)\
**Post date:** [18 August 2022 14:09 UTC](https://forum.confluent.io/t/elasticsearch-source-connector-failed/5825/1 "2022-08-18T14:09:33Z")

</div>

Hey,  
elasticsearch source connector return:

> **This connector has failed**  
> This connector has failed. Try restarting the failed connector, or [check the logs](https://docs.confluent.io/platform/7.2.1/connect/logging.html) to understand why the connector has failed. You can also view the Confluent Developer troubleshooting guide to learn how to troubleshoot issues with connectors.
> 
> Restart failed connector

this is the setting:

```auto
{
  "name": "elastic-source",
  "config": {
    "name": "elastic-source",
    "connector.class": "com.github.dariobalinzo.ElasticSourceConnector",
    "tasks.max": "1",
    "errors.log.enable": "true",
    "errors.log.include.messages": "true",
    "es.host": "127.0.0.1",
    "es.port": "9200",
    "es.user": "elastic",
    "es.password": "sarindra",
    "index.prefix": "",
    "topic.prefix": "test"
  }
}

```

this url [https://localhost:9200/\_cat/indices?v](https://localhost:9200/_cat/indices?v) returns

```auto
> health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
> yellow open test R9t_ToRpQGyi_tTw6MdkSA 1 1 15 0 15.5kb 15.5kb
> green open kibana_sample_data_ecommerce tRcxyLrsSKuWcmOx3ZNKew 1 0 4675 0 4mb 4mb

```

so what’s wrong?

---

<div class="post-metadata">

**Author:** ![Sarindra](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Sarindra](https://forum.confluent.io/u/Sarindra)\
**Post date:** [15 September 2022 12:15 UTC](https://forum.confluent.io/t/elasticsearch-source-connector-failed/5825/2 "2022-09-15T12:15:58Z")

</div>

the problem was the version of elasticsearch

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [22 September 2022 12:16 UTC](https://forum.confluent.io/t/elasticsearch-source-connector-failed/5825/3 "2022-09-22T12:16:21Z")

</div>

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