How to set loglevel to debug in Elasticsearch 5.1?


(Robert Chen) #1

how to set loglevel to debug in Elasticsearch 5.1 cluster? It is very strange I googled and could not find anything for this simple question.


(David Pilato) #2

This?

https://www.elastic.co/guide/en/elasticsearch/reference/5.1/misc-cluster.html#cluster-logger


(Robert Chen) #3

no, this is indice.recovery?
"logger.org.elasticsearch.indices.recovery": "DEBUG"

I mean cluster level loglevel, any settings in elasticsearch.yml?


(David Pilato) #4

Sorry. I don't understand. Why what I linked to does not work for you?


(xeraa) #5

_root is to change the level globally:

PUT /_cluster/settings
{
    "transient" : {
        "logger._root" : "DEBUG"
    }
}

(system) #6

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