ConfigurationError: Could not connect to a compatible version of Elasticsearch

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

my output

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
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

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