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