# Logstash ES Output Plugin

**URL:** <https://discuss.elastic.co/t/logstash-es-output-plugin/179285>\
**Category:** Logstash\
**Created:** [May 2, 2019, 6:15am UTC](https://discuss.elastic.co/t/logstash-es-output-plugin/179285 "2019-05-02T06:15:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapnil\_Bagadia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnil_bagadia/32/45398_2.png) [@Swapnil\_Bagadia](https://discuss.elastic.co/u/Swapnil_Bagadia)\
**Post date:** [May 2, 2019, 6:15am UTC](https://discuss.elastic.co/t/logstash-es-output-plugin/179285/1 "2019-05-02T06:15:47Z")

</div>

Should not the default elasticsearch-document\_type for the current logstash ES Output Plugin be _\_doc_ instead of _doc_ ?

[https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document\_type](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document_type)

The preferred type name for ES(6.x) and default type name for ES(7.x) are _\_doc_.

[https://www.elastic.co/guide/en/elasticsearch/reference/6.7/removal-of-types.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/removal-of-types.html)

This creates an unnecessary hassle if these two are not in sync.

[WARN] 2019-05-02 06:04:22.758 [[main]\>worker0] elasticsearch - Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>"TEST-104693", :\_index=\>"testbook", :\_type=\>"doc", :routing=\>nil}, #LogStash::Event:0x2a09cda5], :response=\>{"index"=\>{"\_index"=\>"test\_v1", "\_type"=\>"doc", "\_id"=\>"TEST-104693", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Rejecting mapping update to [test\_v1] as the final mapping would have more than 1 type: [\_doc, doc]"}}}}

---

<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:** [May 30, 2019, 6:15am UTC](https://discuss.elastic.co/t/logstash-es-output-plugin/179285/2 "2019-05-30T06:15:48Z")

</div>

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