Elasticsearch no longer records slow queries

I had this job. I don’t know what has changed.

in my elasticsearch.yml, the only things that were uncommented and updated are the following lines:

index.search.slowlog.threshold.query.warn: 1ms
index.search.slowlog.threshold.query.info: 1ms
index.search.slowlog.threshold.query.debug: 1ms
index.search.slowlog.threshold.query.trace: 1ms

and my logging.yml has the following set:

es.logger.level: INFO

I tried changing this value to "DEBUG" and "TRACE", but still does not work. yes, I restarted the elasticsearch instance (several times)

What am I missing?

+4
source share
1 answer

I would try adding / changing the logging.yml file to the following:

additivity:
  index.search.slowlog: true
  index.indexing.slowlog: true

Both of them are usually false by default.

I would try setting a sampling threshold:

index.search.slowlog.threshold.fetch.warn: 1ms
index.search.slowlog.threshold.fetch.info: 1ms
index.search.slowlog.threshold.fetch.debug: 1ms
index.search.slowlog.threshold.fetch.trace: 1ms

Finally, I will also try setting everything to 0ms instead of 1ms. This should in fact record everything.

+2

Source: https://habr.com/ru/post/1542246/


All Articles