-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Configure AWS SDK logging configuration #20313
Merged
jasontedor
merged 1 commit into
elastic:master
from
jasontedor:aws-sdk-log-configuration
Sep 3, 2016
Merged
Configure AWS SDK logging configuration #20313
jasontedor
merged 1 commit into
elastic:master
from
jasontedor:aws-sdk-log-configuration
Sep 3, 2016
Conversation
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
Because of security permissions that we do not grant to the AWS SDK (for use in discovery-ec2 and repository-s3 plugins), certain calls in the AWS SDK will lead to security exceptions that are logged at the warning level. These warnings are noise and we should suppress them. This commit adds plugin log configurations for discovery-ec2 and repository-s3 to ship with default Log4j 2 configurations that suppress these log warnings.
jasontedor
added
>enhancement
review
:Core/Infra/Logging
Log management and logging utilities
v5.0.0-beta1
labels
Sep 2, 2016
LGTM. Thanks! |
Thanks @dadoonet. |
btw, did this make it to 5.0 RC1? I am still seeing it:
|
@ppf2 Yes; can you verify that there is a log4j2.properities in |
Yah it's there: |
jasontedor
added a commit
that referenced
this pull request
Oct 15, 2016
This commit fixes an issue with the configuration for the AwsSdkMetrics logger; the issue is that the logging configuration had used underscores instead of periods for the settings key (the perils of lenient settings parsing). Relates #20313
jasontedor
added a commit
that referenced
this pull request
Oct 15, 2016
This commit fixes an issue with the configuration for the AwsSdkMetrics logger; the issue is that the logging configuration had used underscores instead of periods for the settings key (the perils of lenient settings parsing). Relates #20313
jasontedor
added a commit
that referenced
this pull request
Oct 15, 2016
This commit fixes an issue with the configuration for the AwsSdkMetrics logger; the issue is that the logging configuration had used underscores instead of periods for the settings key (the perils of lenient settings parsing). Relates #20313
Thanks @jasontedor ! |
clintongormley
added
:Distributed Coordination/Discovery-Plugins
Anything related to our integration plugins with EC2, GCP and Azure
:Distributed Coordination/Snapshot/Restore
Anything directly related to the `_snapshot/*` APIs
and removed
:Plugin Discovery EC2
labels
Feb 13, 2018
DaveCTurner
added a commit
to DaveCTurner/elasticsearch
that referenced
this pull request
May 7, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates elastic#20313 Closes elastic#56333
DaveCTurner
added a commit
that referenced
this pull request
May 7, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313 Closes #56333
DaveCTurner
added a commit
that referenced
this pull request
May 7, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313 Closes #56333
DaveCTurner
added a commit
that referenced
this pull request
May 7, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313 Closes #56333
DaveCTurner
added a commit
that referenced
this pull request
May 7, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313 Closes #56333
DaveCTurner
added a commit
to DaveCTurner/elasticsearch
that referenced
this pull request
Sep 17, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to `$HOME/.aws/config`. This is the behaviour we want, and it's harmless and handled by the SDK as if the config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates elastic#20313, elastic#56346, elastic#53962 Closes elastic#62493
DaveCTurner
added a commit
that referenced
this pull request
Sep 18, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to `$HOME/.aws/config`. This is the behaviour we want, and it's harmless and handled by the SDK as if the config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313, #56346, #53962 Closes #62493
DaveCTurner
added a commit
that referenced
this pull request
Sep 18, 2020
A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to `$HOME/.aws/config`. This is the behaviour we want, and it's harmless and handled by the SDK as if the config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313, #56346, #53962 Closes #62493
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
:Distributed Coordination/Discovery-Plugins
Anything related to our integration plugins with EC2, GCP and Azure
:Distributed Coordination/Snapshot/Restore
Anything directly related to the `_snapshot/*` APIs
>enhancement
v5.0.0-beta1
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.
Because of security permissions that we do not grant to the AWS SDK (for
use in discovery-ec2 and repository-s3 plugins), certain calls in the
AWS SDK will lead to security exceptions that are logged at the warning
level. These warnings are noise and we should suppress them. This commit
adds plugin log configurations for discovery-ec2 and repository-s3 to
ship with default Log4j 2 configurations that suppress these log
warnings.
Closes #20294