居然是你

slow log里面怎么输出index和type? ES 2.4.1

Elasticsearch | 作者 God_lockin | 发布于2018年07月04日 | 阅读数:1855

我们最近抓到了很多query的slow log,但是基本上都长这样
[2018-07-04 12:47:08,393][INFO ][index.search.slowlog.query] took[3s], took_millis[3001], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[。。。], extra_source[], 
但是集群比较大,包含了茫茫多的index,怎么才能让日志里面输出包括index和type的信息,方便我们定位问题?
已邀请:

要回复问题请先登录注册