kibana 更新 索引模式_elasticsearch – 使用Kibana 6.0从控制台创建索引模式

我最近将我的ElasticStack实例从5.5升级到6.0,看来这个版本的一些重大变化已经损害了我的管道.我有一个脚本,根据ElasticSearch中的索引,为一些类似索引的组自动创建索引模式.问题是,随着6.0版本的新映射更改,我无法从控制台添加任何新的索引模式.这是我使用的请求并在5.5中正常工作:

curl -XPOST "http://localhost:9200/.kibana/index-pattern" -H 'Content- Type: application/json' -d'

{

"title" : "index_name",

"timeFieldName" : "execution_time"

}'

这是我现在在6.0中从ElasticSearch获得的响应:

{

"error": {

"root_cause": [

{

"type": "illegal_argument_exception",

"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [index-pattern, doc]"

}

],

"type": "illegal_argument_exception",

"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [index-pattern, doc]"

},

"status": 400

}

如何从控制台添加索引模式,避免这种多重映射问题?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值