# Document\_type is being ignored

**URL:** https://discuss.elastic.co/t/document-type-is-being-ignored/109667
**Category:** Beats
**Tags:** filebeat
**Created:** [November 30, 2017, 12:13am UTC](https://discuss.elastic.co/t/document-type-is-being-ignored/109667 "2017-11-30T00:13:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [November 30, 2017, 1:04am UTC](https://discuss.elastic.co/t/document-type-is-being-ignored/109667/2 "2017-11-30T01:04:38Z")

</div>

[docuement\_type](https://www.elastic.co/guide/en/beats/filebeat/5.6/configuration-filebeat-options.html#filebeat-document-type) was deprecated in 5.5 and completely removed in 6.0 because [`_type` is being removed from Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html).

You can add your own `type` field (not `_type`) with [fields](https://www.elastic.co/guide/en/beats/filebeat/6.0/configuration-general-options.html#libbeat-configuration-fields).

```auto
filebeat.prospectors:
- paths:
    - 'E:\someLoc\IISLogs\inetpub\logs\LogFiles\W3SVC1\*.log'
  fields_under_root: true
  fields:
    type: iis_log

```

---

_[View the full topic](https://discuss.elastic.co/t/document-type-is-being-ignored/109667)._
