Hide Entitlement warnings?

Some of our elasticsearch installations are encountering warnings such as the following and I am wondering, since this is just a warning, is there any way to disable it or set the logging level lower to make this not appear? Thanks

[WARN ][org.elasticsearch.entitlement.runtime.policy.PolicyManager.repository-s3.ALL-UNNAMED.software.amazon.awssdk.profiles] [localhost] Not entitled: component [repository-s3], module [ALL-UNNAMED], class [class software.amazon.awssdk.profiles.ProfileFileLocation], entitlement [file], operation [read], path /home/<acct>/.aws/credentials
org.elasticsearch.entitlement.runtime.api.NotEntitledException: component [repository-s3], module [ALL-UNNAMED], class [class software.amazon.awssdk.profiles.ProfileFileLocation], entitlement [file], operation [read], path /home/<acct>/.aws/credentials


Since this credentials file is not something we control (but rather our customers do, in their private installations) I’m not sure what it might involve to resolve the issue but since it’s their file and they’re still complaining about it, I’d rather be able to just hide the warning

This warning is already hidden by default:

If you’re seeing it, it must be because you’re not using the default logging config.

Thanks again, David! You’re right, looks like we were using an older/custom log4j2 properties file that doesn’t have these new entitlement entries.

1 Like