Elastic Search index creating with logstash 5.1

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"}}}}

@shilong can you post your configuration?

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