# Document\_type deprecated?

**URL:** <https://discuss.elastic.co/t/document-type-deprecated/96441>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 9, 2017, 1:37pm UTC](https://discuss.elastic.co/t/document-type-deprecated/96441 "2017-08-09T13:37:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [August 10, 2017, 2:41pm UTC](https://discuss.elastic.co/t/document-type-deprecated/96441/6 "2017-08-10T14:41:19Z")

</div>

Hm.... checking the 5.5 branch I clearly see `_type` being hardcoded to `docs`.

The `_type` field is set here: [https://github.com/elastic/beats/blob/5.5/libbeat/outputs/elasticsearch/client.go#L325](https://github.com/elastic/beats/blob/5.5/libbeat/outputs/elasticsearch/client.go#L325)

with `eventType` being hardcoded to `"doc"`: [https://github.com/elastic/beats/blob/5.5/libbeat/outputs/elasticsearch/client.go#L96](https://github.com/elastic/beats/blob/5.5/libbeat/outputs/elasticsearch/client.go#L96)

Are you using the Elasticsearch output or Logstash?

---

_[View the full topic](https://discuss.elastic.co/t/document-type-deprecated/96441)._
