-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Enable deprecation log indexing by default #78319
Closed
pgomulka
wants to merge
43
commits into
elastic:master
from
pgomulka:enable_deprecation_indexing_by_default
Closed
Changes from 34 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
94404f4
draft
pgomulka aa33bcf
default
pgomulka 9546c5d
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka 5317180
use settings consumer
pgomulka 66c1963
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka b094f07
register setting
pgomulka 42ca5f2
imports
pgomulka 78ad881
enable settings on startup
pgomulka 0091139
testcase
pgomulka a822e9d
remove comment
pgomulka aae2ec7
spotless
pgomulka 736e508
docs
pgomulka 5e747d6
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka d8307ee
still failing test
pgomulka c7f12b7
code style
pgomulka 41706ae
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka d7d3b8d
fix tests
pgomulka 5901d0e
cleanup
pgomulka 86527e9
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka 4fda733
remove assertion on startup
pgomulka b1624ce
move test to separate class
pgomulka a1c6829
style
pgomulka a913634
fix client in a test
pgomulka 0595739
javadocs
pgomulka 0030f00
Merge branch 'master' into enable_deprecation_indexing_by_default
elasticmachine 789a3c4
do not delete logs deprecation ds
pgomulka ba94da6
Merge branch 'enable_deprecation_indexing_by_default' of github.com:p…
pgomulka 31851e2
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka ba4334e
deprecated settings test with cleanup
pgomulka 18c4177
fix default value for setting
pgomulka 0436f7b
fix some tests
pgomulka f76e48c
fix doc test
pgomulka fd63dac
delete hidden data stream
pgomulka 7011616
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka faf5a32
compile fix
pgomulka 0c77b99
delete data stream *
pgomulka a2d3803
auto expand replica
pgomulka 935f802
imports and todo
pgomulka 2515dfd
Merge remote-tracking branch 'upstream/master' into enable_deprecatio…
pgomulka b34bd64
flush processor when disabeling the indexing
pgomulka bf33cf0
use exact template in docs on DELETE/_index_template/*
pgomulka c93abdd
remove index_template cleanup in gradle as it should be handled in tests
pgomulka 3144ec8
disable deprecation indxing in docs and runtime fields
pgomulka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,6 +234,17 @@ The user ID is included in the `X-Opaque-ID` field in deprecation JSON logs. | |
--------------------------- | ||
// NOTCONSOLE | ||
|
||
Deprecation logs are indexed into `.logs-deprecation.elasticsearch-default` data stream by default. | ||
You can disable deprecation log indexing by changing a | ||
`cluster.deprecation_indexing.enabled` setting to false. | ||
|
||
==== Deprecation logs throttling | ||
Deprecation logs are deduplicated based on a deprecated feature key | ||
and x-opaque-id so that if a feature is repeatedly used, it will not overload the deprecation logs. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we link |
||
This applies to both indexed deprecation logs and logs emitted to log files. | ||
You can disable the use of `x-opaque-id` in throttling by changing | ||
`cluster.deprecation_indexing.x_opaque_id_used.enabled` to false | ||
|
||
[discrete] | ||
[[json-logging]] | ||
=== JSON log format | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -551,7 +551,7 @@ protected boolean preserveILMPoliciesUponCompletion() { | |
*/ | ||
protected Set<String> preserveILMPolicyIds() { | ||
return Sets.newHashSet("ilm-history-ilm-policy", "slm-history-ilm-policy", | ||
"watch-history-ilm-policy", "ml-size-based-ilm-policy", "logs", "metrics"); | ||
"watch-history-ilm-policy", "ml-size-based-ilm-policy", "logs", "metrics", ".deprecation-indexing-ilm-policy"); | ||
} | ||
|
||
/** | ||
|
@@ -782,7 +782,7 @@ protected static void wipeAllIndices() throws IOException { | |
boolean includeHidden = minimumNodeVersion().onOrAfter(Version.V_7_7_0); | ||
try { | ||
//remove all indices except ilm history which can pop up after deleting all data streams but shouldn't interfere | ||
final Request deleteRequest = new Request("DELETE", "*,-.ds-ilm-history-*"); | ||
final Request deleteRequest = new Request("DELETE", "*,-.ds-ilm-history-*,-.ds-.logs-deprecation.elasticsearch-default-*"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you ask the Data Management team about this? |
||
deleteRequest.addParameter("expand_wildcards", "open,closed" + (includeHidden ? ",hidden" : "")); | ||
RequestOptions allowSystemIndexAccessWarningOptions = RequestOptions.DEFAULT.toBuilder() | ||
.setWarningsHandler(warnings -> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.