Skip to content

Commit

Permalink
[doc] Document workaround for slow log levels (elastic#75438)
Browse files Browse the repository at this point in the history
settings for slow log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates elastic#57591
relates elastic#73718
# Conflicts:
#	docs/reference/index-modules/slowlog.asciidoc
  • Loading branch information
pgomulka committed Jul 22, 2021
1 parent 070a0cb commit c17e15d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/reference/index-modules/slowlog.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The user ID is also included in JSON logs.
=== Index Slow log

The indexing slow log, similar in functionality to the search slow
log. The log file name ends with `_index_indexing_slowlog.log`. Log and
log. The log file name ends with `_index_indexing_slowlog.json`. Log and
the thresholds are configured in the same way as the search slowlog.
Index slowlog sample:

Expand Down Expand Up @@ -155,3 +155,12 @@ logger.index_indexing_slowlog.level = trace
logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling
logger.index_indexing_slowlog.additivity = false
--------------------------------------------------

[discrete]
=== Slow log levels

You can mimic the search or indexing slow log level by setting appropriate
threshold making "more verbose" loggers to be switched off.
If for instance we want to simulate index.indexing.slowlog.level = INFO
then all we need to do is to set
index.indexing.slowlog.threshold.index.debug and index.indexing.slowlog.threshold.index.trace to -1

0 comments on commit c17e15d

Please sign in to comment.