赞
踩
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_
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。