Logstash Error: Failed to fetch X-Pack information from Elasticsearch

Viewed 194

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

Elasticsearch crashes with these errors: enter image description here

Logstash.conf:

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.

Thanks

0 Answers
Related