Kibana的使用语法
#查看所有索引的配置
GET /_all/_settings
#查看索引设置
GET /wf_chart_record/_settings
#查询所有数据
GET /wf_chart_record/_search
{
“query”: {
“match_all”: {}
}
}
#查看索引的mapping
GET /wf_chart_record/_mappings
#查询索引下的文档,指定查看的字段和需要的数据量(注意size)
GET /wf_chart_record/_search
{
“query”:{
“match_all”: {}
},
“size”:500
}
#范围查询range
GET /wf_chart_record/_search
{
“query”: {
“range”: {
“msgTime”: {
“gte”: 1592373526485,
“lte”: 1592373526490
}
}
}
}
#判断一个字段是否为空must_not
GET /wf_chart_record/_search
{
“query”: {
“bool”: {
“must_not”: [{
“match_phrase”:{
“roomId.keyword”: “”
}
}]
}
}
}
#精确匹配terms
GET /wf_chart_record/_search
{
“query”: {
“bool”: {
“must”: [{
“terms”:{
“from.keyword”:[ “FengYueBenWuJie”]
}
}]
}
}
}