你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
stone_xy
赞同来自: Atom 、Reilee
POST log/doc/_search { "size": 10, "query": { "function_score": { "query": { "match_all": {} }, "script_score": { "script": { "source": "doc.size.value / doc.request_time.value" } } } }, "sort": [ { "_score": { "order": "desc" } } ] }
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自: Atom
doom
GET log/_search { "size" : 10, "_source" : false, "stored_fields" : "_none_", "sort" : [ { "_script" : { "script" : { "source" : "doc['size'].value /doc ['request_time'].value ", "lang" : "painless" }, "type" : "number", "order" : "desc" } } ] }
POST /_xpack/sql?format=txt { "query":"select (size/request_time) as speed from log order by speed desc", "fetch_size": 10 }
要回复问题请先登录或注册
beat-logstash-elasticsearch-kabana
3 个回复
stone_xy
赞同来自: Atom 、Reilee
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自: Atom
doom
赞同来自: Atom