Skip to content

Deprecate slow log level#73718

Merged
pgomulka merged 5 commits intoelastic:7.xfrom
pgomulka:deprecate_slow_log_level
Jun 3, 2021
Merged

Deprecate slow log level#73718
pgomulka merged 5 commits intoelastic:7.xfrom
pgomulka:deprecate_slow_log_level

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

@pgomulka pgomulka commented Jun 3, 2021

Indexing and search slow log level setting is deprecated in 7x as it is removed in master

relates #57591

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pgomulka pgomulka merged commit b636a0a into elastic:7.x Jun 3, 2021
@probakowski probakowski added the :Core/Infra/Logging Log management and logging utilities label Jul 8, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jul 8, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@Leaf-Lin
Copy link
Copy Markdown
Contributor

Leaf-Lin commented Jul 19, 2021

Hi, @pgomulka , I came across this issue because while testing slowlog, I can see correct deprecating message as follows:

#! [index.search.slowlog.level] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.

But I couldn't see anything in the 7.14 doc mentioning this. https://www.elastic.co/guide/en/elasticsearch/reference/7.14/index-modules-slowlog.html

Can we just add a line or two in the doc above from the migration guide?
https://github.com/elastic/elasticsearch/pull/73718/files#diff-c2605a61b8ed26d6ea4c66dbd4caac554c673001c698cc37e92d5f3947c930ff

Slow loggers::

  • index.indexing.slowlog.level and index.search.slowlog.level are deprecated. These settings can be worked around by using appropriate thresholds. 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

@pgomulka
Copy link
Copy Markdown
Contributor Author

hey @Leaf-Lin I think it is a good idea. I will try to add a doc, without mentioning the previous settings so that it is the same in master and 7.x
#75438

pgomulka added a commit that referenced this pull request Jul 22, 2021
settings for slow log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates #57591
relates #73718
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Jul 22, 2021
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
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Jul 22, 2021
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
pgomulka added a commit that referenced this pull request Jul 22, 2021
settings for slow log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates #57591
relates #73718
pgomulka added a commit that referenced this pull request Jul 22, 2021
settings for slow log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates #57591
relates #73718
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request Jul 30, 2021
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
jrodewig added a commit that referenced this pull request Sep 16, 2021
In 7.13 and later 7.x versions, the `index.indexing.slowlog.level` and
`index.search.slowlog.level` index settings are deprecated, not removed.

This corrects the related item in the 7.13 breaking changes.

Relates to #73718
jrodewig added a commit that referenced this pull request Sep 16, 2021
In 7.13 and later 7.x versions, the `index.indexing.slowlog.level` and
`index.search.slowlog.level` index settings are deprecated, not removed.

This corrects the related item in the 7.13 breaking changes.

Relates to #73718
jrodewig added a commit that referenced this pull request Sep 16, 2021
In 7.13 and later 7.x versions, the `index.indexing.slowlog.level` and
`index.search.slowlog.level` index settings are deprecated, not removed.

This corrects the related item in the 7.13 breaking changes.

Relates to #73718
jrodewig added a commit that referenced this pull request Sep 16, 2021
In 7.13 and later 7.x versions, the `index.indexing.slowlog.level` and
`index.search.slowlog.level` index settings are deprecated, not removed.

This corrects the related item in the 7.13 breaking changes.

Relates to #73718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Logging Log management and logging utilities >deprecation Team:Core/Infra Meta label for core/infra team v7.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants