1.查询mapping

curl -X GET "10.0.38.111:1200/metric_data_bus_2018-08-07/_mapping/data_bus?pretty"

2.filter查询

curl -X GET "10.0.38.111:1200/metric_d_2018-08-07/_search?pretty&size=1" -H 'Content-Type: application/json' -d'{
"query": {
"bool": {
"must": { "match_all": {} },
"filter": [{
"range": {
"data.store_latency": {
"gte": 200
}
}
},{
"range": {
"data.parser_latency": {
"gte": 60000
}
}
}]
}
}
}'

 

 posted on 2018-08-07 18:24  ChaseForFuture  阅读(142)  评论(0编辑  收藏  举报