# Error in creating logstash

**URL:** <https://discuss.elastic.co/t/error-in-creating-logstash/188259>\
**Category:** Logstash\
**Created:** [July 1, 2019, 8:16am UTC](https://discuss.elastic.co/t/error-in-creating-logstash/188259 "2019-07-01T08:16:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikash\_Singh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_singh1/32/42119_2.png) [@Vikash\_Singh1](https://discuss.elastic.co/u/Vikash_Singh1)\
**Post date:** [July 1, 2019, 8:16am UTC](https://discuss.elastic.co/t/error-in-creating-logstash/188259/1 "2019-07-01T08:16:56Z")

</div>

I am trying to create indices for netflow data using the netflow plugins since I have created my own template I am getting error while creating indices:  
[WARN] 2019-07-01 13:44:45.088 [[main]\>worker0] elasticsearch - Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash\_netflow-2019.07.01", :\_type=\>"doc", :routing=\>nil}, #LogStash::Event:0x3035a619], :response=\>{"index"=\>{"\_index"=\>"logstash\_netflow-2019.07.01", "\_type"=\>"doc", "\_id"=\>"-q-ZrGsBxxoJYzlFuseq", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Rejecting mapping update to [logstash\_netflow-2019.07.01] as the final mapping would have more than 1 type: [\_doc, doc]"}}}}  
What should I do???

---

<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:** [July 29, 2019, 8:17am UTC](https://discuss.elastic.co/t/error-in-creating-logstash/188259/2 "2019-07-29T08:17:02Z")

</div>

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