关于elasticsearch:elasticsearch实际总结3慢日志分析

35次阅读

共计 803 个字符,预计需要花费 3 分钟才能阅读完成。

一、参考

elasticsearch 学习系列目录——更新 ing

search log analyzer

二、Opster

2.1 装置运行

es download

kibana download

tar -xzvf elasticsearch-7.12.1-darwin-x86_64.tar.gz
cd elasticsearch-7.12.1/
./bin/elasticsearch

tar -xzvf kibana-7.12.1-darwin-x86_64.tar.gz
cd work/esEnv/kibana-7.12.1-darwin-x86_64
./bin/kibana

2.2 设置慢查问

PUT kibana_sample_data_logs/_settings
{
  "index.search.slowlog.threshold.query.warn": "100ms",
  "index.search.slowlog.threshold.query.info": "50ms",
  "index.search.slowlog.threshold.query.debug": "10ms",
  "index.search.slowlog.threshold.query.trace": "60ms",
  "index.search.slowlog.threshold.fetch.warn": "100ms",
  "index.search.slowlog.threshold.fetch.info": "50ms",
  "index.search.slowlog.threshold.fetch.debug": "20ms",
  "index.search.slowlog.threshold.fetch.trace": "60ms",
  "index.search.slowlog.level": "debug"
}

接下来,在 kibana 中模仿查问,产生一些慢查问日志

2.3 剖析慢查问日志

正文完
 0