es 慢查询

官方文档

https://www.elastic.co/guide/en/elasticsearch/reference/7.16/index-modules-slowlog.html

我是直接通过kbina设置,网上说的什么设置log的 估计都是7.x以下的es了

PUT /all_logs/_settings
{
"index.search.slowlog.threshold.query.warn": "10s",
"index.search.slowlog.threshold.query.info": "5s",
"index.search.slowlog.threshold.query.debug": "2s",
"index.search.slowlog.threshold.query.trace": "500ms",
"index.search.slowlog.threshold.fetch.warn": "1s",
"index.search.slowlog.threshold.fetch.info": "800ms",
"index.search.slowlog.threshold.fetch.debug": "500ms",
"index.search.slowlog.threshold.fetch.trace": "200ms"
}
posted @ 2022-11-07 16:52  方东信  阅读(107)  评论(0编辑  收藏  举报