We are migrating the old data to the new elasticsearch 5+ version.
We find that elasticsearch in not automatically creating the index based on our logstash configuration. And always seeing the below error message, is there any one can help answer? Thank you!
[WARN ][logstash.outputs.elasticsearch] Failed action. {:status=>404, :action=>["index", {:_id=>nil, :_index=>"logstash-2016.12.19", :_type=>"logs", :_routing=>nil}, 2016-12-19T10:27:13.000Z %{host} %{message}], :response=>{"index"=>{"_index"=>"logstash-2016.12.19", "_type"=>"logs", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource.id"=>"logstash-2016.12.19", "index_uuid"=>"na", "index"=>"logstash-2016.12.19"}}}}