Failed to fetch X-Pack information from Elasticsearch

Hello Dears,
I want to read all docs from Elasticsearch Index using Logstash Pipeline. But I got the following errors.

Elasticsearch crashes with these errors:


input {
    elasticsearch {
          hosts => ["https://localhost:9200"]
          ca_file => "/etc/logstash/ca.crt"
          user => "elastic"
          password => "elastic"
          query => '{"query": { "match": { "statuscode": 200} }, "sort": [ "_doc" ]}'



output {
    stdout { codec => rubydebug }

Additional: I used "curl" to test elastic username & password. And it's working fine.


logstash requires a name-matched certificate. Whatever hostname you are connecting to has to match the DN or SAN.

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