# ConfigurationError: Could not connect to a compatible version of Elasticsearch

**URL:** <https://discuss.elastic.co/t/configurationerror-could-not-connect-to-a-compatible-version-of-elasticsearch/296624>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [February 8, 2022, 3:34pm UTC](https://discuss.elastic.co/t/configurationerror-could-not-connect-to-a-compatible-version-of-elasticsearch/296624 "2022-02-08T15:34:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marwan/32/101524_2.png) [@marwan](https://discuss.elastic.co/u/marwan)\
**Post date:** [February 8, 2022, 3:34pm UTC](https://discuss.elastic.co/t/configurationerror-could-not-connect-to-a-compatible-version-of-elasticsearch/296624/1 "2022-02-08T15:34:16Z")

</div>

Hi guys,  
I have a subscription to elastic cloud  
I'm trying to send logs from our Kubernetes on aws to our elastic cloud account.

The main image i use is :  
[docker.elastic.co/logstash/logstash-oss:7.17.0](http://docker.elastic.co/logstash/logstash-oss:7.17.0)

my output

```auto
output {
       elasticsearch {
           ecs_compatibility => v1
           cloud_id => "xxxx"
           cloud_auth => "logstash:xxxxx" 
           index => "ecs-logstash-%{+yyyy.MM.dd}"
          
        }
    }

```

I can output to the stdout ,alos I have tested the cluster connectivity  
curl -i [https://logstash:jxxxxxxx@xxxJe.eu-central-1.aws.cloud.es.io:443](https://logstash:jxxxxxxx@xxxJe.eu-central-1.aws.cloud.es.io:443)  
result is :

HTTP/2 404

**content-type** : application/json; charset=UTF-8

**x-cloud-request-id** : IMooeN03TMKKZAG5oz\_eaA

**content-length** : 43

**date** : Tue, 08 Feb 2022 11:45:57 GMT

{"ok":false,"message":"Unknown resource."}

* * *

Error I get : `ConfigurationError: Could not connect to a compatible version of Elasticsearch,

agent - Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false"`

is it related to the images im using or Im missing some setting , hope I can find help to solve it

---

<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:** [March 8, 2022, 3:34pm UTC](https://discuss.elastic.co/t/configurationerror-could-not-connect-to-a-compatible-version-of-elasticsearch/296624/2 "2022-03-08T15:34:41Z")

</div>

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