I'm running Elasticsearch 2.1.0 and have logging set to INFO in logging.yml:
es.logger.level: INFO
index.search.slowlog: INFO, index_search_slow_log_file
index.indexing.slowlog: INFO, index_indexing_slow_log_file
In elasticsearch.yml I have the following set:
index.search.slowlog.threshold.query.warn: 3s
index.search.slowlog.threshold.query.info: 2s
index.search.slowlog.threshold.query.debug: 1s
index.search.slowlog.threshold.query.trace: 0
index.search.slowlog.threshold.fetch.warn: 500ms
index.search.slowlog.threshold.fetch.info: 250ms
index.search.slowlog.threshold.fetch.debug: 100ms
index.search.slowlog.threshold.fetch.trace: 0
index.indexing.slowlog.threshold.index.warn: 1s
index.indexing.slowlog.threshold.index.info: 500s
index.indexing.slowlog.threshold.index.debug: 250ms
index.indexing.slowlog.threshold.index.trace: 0
The numbers don't really matter as I'm still playing around with the values. What's important is with the trace threshold set to 0, TRACE logs will still be sent to the log file, event though the log level is set to INFO. If I increase all the trace values to 100ms and restart ES, then nothing is logged as expected.
The same happens if I set the debug threshold to 0.
Is this a bug? Can anyone replicate this?