# Filebeatでの\_typeの変更について

**URL:** <https://discuss.elastic.co/t/filebeat-type/222417>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [March 6, 2020, 7:51am UTC](https://discuss.elastic.co/t/filebeat-type/222417 "2020-03-06T07:51:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [March 8, 2020, 8:37am UTC](https://discuss.elastic.co/t/filebeat-type/222417/2 "2020-03-08T08:37:47Z")

</div>

Typeについては使われなくなる方向で進んでいると認識していますが、  
どのバージョンのfilebeatをお使いでしょうか？

こちらによると、filebaet5.5のとき、doc固定になっていると書かれています。

> [@Document\_type deprecated?](https://discuss.elastic.co/t/document-type-deprecated/96441/6):
>
> 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?

また、最新のドキュメントを確認してもtypeが指定できるとマニュアル上で見つけることができませんでした。

> **[filebeat.reference.yml | Filebeat Reference \[7.6\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-reference-yml.html)**

\_typeを変更したい理由によっては、代替案があるかもしれませんが、  
マニュアルを見た限りですと、filebeat7.xでは\_typeは変えられなさそうです。

ご参考になれば幸いです。

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-type/222417)._
