# Elastic Search index creating with logstash 5.1

**URL:** <https://discuss.elastic.co/t/elastic-search-index-creating-with-logstash-5-1/69520>\
**Category:** Logstash\
**Created:** [December 20, 2016, 4:36am UTC](https://discuss.elastic.co/t/elastic-search-index-creating-with-logstash-5-1/69520 "2016-12-20T04:36:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shilong](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shilong](https://discuss.elastic.co/u/shilong)\
**Post date:** [December 20, 2016, 4:36am UTC](https://discuss.elastic.co/t/elastic-search-index-creating-with-logstash-5-1/69520/1 "2016-12-20T04:36:48Z")

</div>

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](http://resource.id)"=\>"logstash-2016.12.19", "index\_uuid"=\>"_na_", "index"=\>"logstash-2016.12.19"}}}}

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [December 22, 2016, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-index-creating-with-logstash-5-1/69520/2 "2016-12-22T09:13:40Z")

</div>

@shilong can you post your configuration?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 19, 2017, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-index-creating-with-logstash-5-1/69520/3 "2017-01-19T09:13:47Z")

</div>

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