console里的语句是:
把这个搜索语句放在curl命令里:
不知道curl命令哪里出错了,谢谢!
GET /bj-sip_register/_search
{
"query": {
"range": {
"@timestamp": {
"gte": "now-4h",
"lte": "now"
}
}
}
}
输出:{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
搜索出的数据。。。
把这个搜索语句放在curl命令里:
curl -XGET 'localhost:9200//bj-sip_register/_search' -H 'Content-Type: application/json' -d'{
"query": {
"range": {
"@timestamp": {
"gte": "now-4h",
"lte": "now"
}
}
}
}'
输出结果,输出的数据量为0:{"took":2,"timed_out":false,"_shards":{"total":15,"successful":15,"skipped":0,"failed":0},"hits":{"total":{"value":0,"relation":"eq"},"max_score":null,"hits":[]}}
不知道curl命令哪里出错了,谢谢!
1 个回复
sailershen
赞同来自:
输出结果: