elasticsearch7 查看索引日志
可以通过以下命令查看 Elasticsearch7 索引日志:
- 打开 Elasticsearch7 的日志目录:
cd /var/log/elasticsearch/
- 查看 Elasticsearch7 的主要日志文件:
cat elasticsearch.log
- 查看 Elasticsearch7 的 GC 日志:
cat gc.log
- 查看 Elasticsearch7 的慢查询日志:
cat index_search_slowlog.log
- 查看 Elasticsearch7 的索引刷新日志:
cat index_refresh.log
- 查看 Elasticsearch7 的索引合并日志:
cat index_merge.log
- 查看 Elasticsearch7 的索引清理日志:
cat index_cleanup.log
注意:以上命令需要在 Elasticsearch7 安装目录下执行。如果 Elasticsearch7 在 Docker 容器中运行,则需要在容器中执行以上命令。
原文地址: http://www.cveoy.top/t/topic/bg3r 著作权归作者所有。请勿转载和采集!