根据logging.yml的配置
es.logger.level: INFO
index_search_slow_log_file:
type: dailyRollingFile
file: ${path.logs}/${cluster.name}_index_search_slowlog.log
datePattern: "'.'yyyy-MM-dd"
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
可以在目录里面找到相应的索引日志文件{cluster.name}_index_search_slowlog.log 但是文件始终为空
es.logger.level: INFO
index_search_slow_log_file:
type: dailyRollingFile
file: ${path.logs}/${cluster.name}_index_search_slowlog.log
datePattern: "'.'yyyy-MM-dd"
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
可以在目录里面找到相应的索引日志文件{cluster.name}_index_search_slowlog.log 但是文件始终为空
2 个回复
medcl - 今晚打老虎。
赞同来自: st
st
赞同来自:
{
"index.search.slowlog.level": "debug,trace",
"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
}