fix(log-center): 修复 demo 数据源、ES 502、查询页关联
This commit is contained in:
1 parent
c624ca5b4a
commit
36bd0a6155
3 files changed
+27
-13
No files matched your search
@@ -137,7 +137,9 @@ func (h *LogProxyHandler) QueryES(c *gin.Context) {
|
||||
if searchBody == nil {
|
||||
searchBody = map[string]interface{}{
|
||||
"size": req.Size,
|
||||
"sort": []map[string]interface{}{{"@timestamp": map[string]string{"order": "desc"}}},
|
||||
"sort": []interface{}{
|
||||
map[string]interface{}{"_score": map[string]string{"order": "desc"}},
|
||||
},
|
||||
"query": map[string]interface{}{
|
||||
"bool": map[string]interface{}{
|
||||
"must": []interface{}{
|
||||
|
||||
Reference in new issue
Block a user