【问题标题】:What's the difference between `_type` and `type` in elasticsearch from filebeat?来自filebeat的elasticsearch中的`_type`和`type`有什么区别?
【发布时间】:2017-07-18 01:12:51
【问题描述】:

elasticsearch from filebeat中_typetype有什么区别?

从查询中查看数据:

看起来,_type 是索引中的文档类型,type 只是我的源数据的一个字段。如果是,为什么filebeat将document_type设置为type而不是_type

【问题讨论】:

  • 我没有你的困惑。 json->_source->type 是你的自定义字段。

标签: elasticsearch filebeat


【解决方案1】:

我假设这是 5.5.0,对吧?

这是为 Elasticsearch 6.0 做的准备,每个索引只使用一个名为 doc_type(尽管这可以通过配置标志进行更改); Elasticsearch 7.0 将完全删除_type。因此该值已移至自定义 type 字段。

此更改的拉取请求是 https://github.com/elastic/beats/pull/3757,它还链接到相关的 Elasticsearch 问题。

【讨论】:

  • 是的。这就是我正在寻找的答案。谢谢。
猜你喜欢
  • 2011-02-06
  • 2015-04-15
  • 1970-01-01
  • 1970-01-01
  • 2020-11-14
  • 1970-01-01
  • 1970-01-01
  • 2016-03-24
相关资源
最近更新 更多