-
Notifications
You must be signed in to change notification settings - Fork 307
Deprecates option in favor of silence_errors_in_log
#1068
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
Deprecates option in favor of silence_errors_in_log
#1068
Conversation
log_silenced_errors
95374ff
to
cf4c630
Compare
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.
The original name failure_type_logging_whitelist
is not too bad and is widely adopted. I am not sure whether the rename gives a better value to users. The bottom line is it is a better name
docs/index.asciidoc
Outdated
[source,ruby] | ||
output { | ||
elasticsearch { | ||
log_silenced_errors => ["document_already_exists_exception"] |
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.
It is a bit hard for me to understand log_silenced_errors
means not to log xxx error. Maybe silence_error_in_log
?
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.
Sound better, maybe silenced_errors_in_log
?
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.
sounds better. let's see how @karenzone judge on silence_errors_in_log
or silenced_errors_in_log
log_silenced_errors
silenced_errors_in_log
silenced_errors_in_log
silence_errors_in_log
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.
LGTM. Glad to see the example in doc and thanks for changing the name
@@ -332,6 +332,7 @@ This plugin supports the following configuration options plus the | |||
| <<plugins-{type}s-{plugin}-index>> |<<string,string>>|No | |||
| <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|No | |||
| <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|No | |||
| <<plugins-{type}s-{plugin}-silence_errors_in_log>> |<<array,array>>|No |
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.
Should be in alphabetical order
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.
Use correct deprecation format throughout
Set the Elasticsearch errors in the whitelist that you don't want to log. | ||
A useful example is when you want to skip all 409 errors | ||
which are `document_already_exists_exception`. | ||
NOTE: Deprecated, refer to <<plugins-{type}s-{plugin}-silence_errors_in_log>>. |
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.
Use correct deprecation format
} | ||
} | ||
|
||
NOTE: Deprecates <<plugins-{type}s-{plugin}-failure_type_logging_whitelist>>. |
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.
Use deprecation format
Release notes
Deprecates
failure_type_logging_whitelist
setting renaming itsilence_errors_in_log
What does this PR do?
Introduce a new setting named
silence_errors_in_log
with exact same behavior offailure_type_logging_whitelist
. It print a deprecation log message iffailure_type_logging_whitelist
is used.Why is it important/What is the impact to the user?
Rename a setting that's generally confusing the user to a more meaningful name.
Checklist
[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
docker-compose -f es_and_kb.yml up
es_and_kb.txt
failure_type_logging_whitelist
and check that a deprecation log is present inlogs/logstash-deprecation.log
. After the deprecation log the work as expected and doesn't log the content of the403
responses from Elasticsearchfailure_type_logging_whitelist
and decomment thesilence_errors_in_log
and verify the feature work as expected (no log of error responses)Related issues
Use cases
Screenshots
Logs