Logstash version I am using -logstash 6.0.1
Elasticsearch version below are there in my system.
/appserver/elk4pq/elasticsearch-2.3.2/config/elasticsearch.yml
/data/software/elk/elasticsearch-2.4.5/config/elasticsearch.yml
/data/software/elk/elasticsearch-5.3.2/config/elasticsearch.yml
Not getting the result of this command.
curl -XGET 'localhost:9200'
curl: (7) couldn't connect to host
Error I am getting [2020-05-26T04:25:06,394][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"tol report-qa-dtc-2020.05.26", :_type=>"tolcheck", :_routing=>nil}, #LogStash::Event:0x7ffa2f95], :response=>{"index"=>{"_index"=>"tolreport-qa-dtc-2020.05.26", "_typ e"=>"tolcheck", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource. id"=>"tolreport-qa-dtc-2020.05.26", "index_uuid"=>"na", "index"=>"tolreport-qa-dtc-2020.05.26"}}}}
111 [2020-05-26T04:25:06,565][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"tol report-qa-hdc-2020.05.26", :_type=>"tolcheck", :_routing=>nil}, #LogStash::Event:0x26000ed0], :response=>{"index"=>{"_index"=>"tolreport-qa-hdc-2020.05.26", "_typ e"=>"tolcheck", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource. id"=>"tolreport-qa-hdc-2020.05.26", "index_uuid"=>"na", "index"=>"tolreport-qa-hdc-2020.05.26"}}}}
112 [2020-05-26T04:25:06,571][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"tol report-qa-hdc-2020.05.26", :_type=>"tolcheck", :_routing=>nil}, #LogStash::Event:0x7ffa2f95], :response=>{"index"=>{"_index"=>"tolreport-qa-hdc-2020.05.26", "_typ e"=>"tolcheck", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource. id"=>"tolreport-qa-hdc-2020.05.26", "index_uuid"=>"na", "index"=>"tolreport-qa-hdc-2020.05.26"}}}}
Can anyone help.