Updating slow query log in production environment

Hi All,

we are using Elastic Search 5.6 and want to know what elastic queries is running for search API in production environment.

we run below command for slow query logs.

curl -XPUT http://localhost:9200/_cluster/settings -H ‘Content-Type: application/json’ -d’


"transient" : {

"logger.index.search.slowlog" : "DEBUG",

"logger.index.indexing.slowlog" : "DEBUG"



curl -XPUT 'localhost:9200/Index_name' -H 'Content-Type: application/json' -d '{

"index.search.slowlog.threshold.query.warn": "0ms",

"index.search.slowlog.threshold.query.info": "0ms",

"index.search.slowlog.threshold.query.debug": "0ms",

"index.search.slowlog.threshold.query.trace": "0ms",

"index.search.slowlog.threshold.fetch.warn": "0ms",

"index.search.slowlog.threshold.fetch.info": "0ms",

"index.search.slowlog.threshold.fetch.debug": "0ms",

"index.search.slowlog.threshold.fetch.trace": "0ms"


but,slow query log is not updating. Please help me.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.