【发布时间】:2017-07-18 01:12:51
【问题描述】:
elasticsearch from filebeat中_type和type有什么区别?
看起来,_type 是索引中的文档类型,type 只是我的源数据的一个字段。如果是,为什么filebeat将document_type设置为type而不是_type?
【问题讨论】:
-
我没有你的困惑。 json->_source->type 是你的自定义字段。
elasticsearch from filebeat中_type和type有什么区别?
看起来,_type 是索引中的文档类型,type 只是我的源数据的一个字段。如果是,为什么filebeat将document_type设置为type而不是_type?
【问题讨论】:
我假设这是 5.5.0,对吧?
这是为 Elasticsearch 6.0 做的准备,每个索引只使用一个名为 doc 的 _type(尽管这可以通过配置标志进行更改); Elasticsearch 7.0 将完全删除_type。因此该值已移至自定义 type 字段。
此更改的拉取请求是 https://github.com/elastic/beats/pull/3757,它还链接到相关的 Elasticsearch 问题。
【讨论】: