当前位置:   article > 正文

kibana 更新 索引模式_ES--Kibana相关操作创建索引和Mapping

kibala 添加mapping结构

Kibana控制台命令:

1.创建索引infomation并创建映射mapping (一步搞定)

PUT information

{

"mappings": {

"record":{

"properties": {

"ip":{"type": "text"},

"count":{"type": "long"},

"create_type":{"type": "date"},

"i_type":{"type": "text"}

} }

}

}

2.插入一条数据

PUT information/record/1

{

"ip":"10.192.168.4",

"count":"1455112",

"create_type": "2018-03-07",

"i_type":"IP数据"

}

3.再插入一条数据

PUT information/record/2

{

"ip":"10.192.168.12",

"count":"1455112",

"create_type": "2018-03-08",

"i_type":"IP数据"

}

4.查看所有数据

GET information/_search

5.查看索引配置

GET information/_settings

6.得到所有索引信息

GET information

7.更新第一条索引信息(相当于覆盖!!!)

PUT information/record/1

{

"ip":"10.192.168.4",

"count":"6666",

"create_type": "2018-03-07",

"i_type":"1111数据"

}

实际案例:

{

"from": 0,

"size": "20",

"query": {

"function_

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/792739
推荐阅读
  

闽ICP备14008679号