【发布时间】:2021-06-03 19:49:16
【问题描述】:
您好,我在开发工具中使用了以下弹性搜索查询。我的 bool 查询不断出现错误,但查看 @timestamp 字段并尝试仅检索一天的数据似乎是正确的。
"input": {
"search": {
"request": {
"indices": [
"<iovation-*>"
],
"body": {
"size": 0,
"query": {
"bool": {
"must": {
"range": {
"@timestamp": {
"gte": "now-1d"
}
}
}
},
"aggs": {
"percentiles": {
"percentiles": {
"field": "logstash.load.duration",
"percents": 95,
"keyed": false
}
},
"dates": {
"date_histogram": {
"field": "@timestamp",
"calendar_interval": "5m",
"min_doc_count": 1
}
}
}
}
}
}
}
},
感谢任何帮助!
【问题讨论】:
标签: elasticsearch kibana