Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove slowlog level #57591

Merged
merged 8 commits into from
Jun 4, 2020
Merged

Remove slowlog level #57591

merged 8 commits into from
Jun 4, 2020

Conversation

pgomulka
Copy link
Contributor

@pgomulka pgomulka commented Jun 3, 2020

Setting a slow log level requires an unnecessary conditional logic in SearchSlowLog and IndexingSlowLog
The behaviour of setting a level on a slow logger can be achieved with correct slow log threshold settings.
This PR is removing slow log and modifies tests to achieve the same behaviour with changing threshold.
relates #56171

@pgomulka pgomulka added :Core/Infra/Logging Log management and logging utilities v8.0.0 labels Jun 3, 2020
@pgomulka pgomulka self-assigned this Jun 3, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jun 3, 2020
Copy link
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.

@@ -18,4 +18,11 @@ Mapping::
Deprecations::
* Remove undocumented endpoints of hot threads API {pull}55109[#55109]

Slow loggers::
* `index.indexing.slowlog.level` and `index.indexing.slowlog.level` are removed. These settings can be worked around
Copy link
Member

Choose a reason for hiding this comment

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

It looks like the settings listed here are the same? One should be the search slowlog level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, good find.

@pgomulka
Copy link
Contributor Author

pgomulka commented Jun 4, 2020

@elasticmachine update branch

@pgomulka pgomulka merged commit 0dfc83a into elastic:master Jun 4, 2020
pgomulka added a commit that referenced this pull request Jun 3, 2021
Indexing and search slow log level setting is deprecated in 7x as it is removed in master

relates #57591
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Jul 19, 2021
settings for slwo log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates elastic#57591
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Core/Infra/Logging Log management and logging utilities Team:Core/Infra Meta label for core/infra team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants