diff --git a/src/main/java/org/opensearch/security/auth/BackendRegistry.java b/src/main/java/org/opensearch/security/auth/BackendRegistry.java index c16f90fb6a..3877df4130 100644 --- a/src/main/java/org/opensearch/security/auth/BackendRegistry.java +++ b/src/main/java/org/opensearch/security/auth/BackendRegistry.java @@ -282,7 +282,10 @@ && isBlocked(((InetSocketAddress) request.getHttpChannel().getRemoteAddress()).g if (authDomain.isChallenge() && httpAuthenticator.reRequestAuthentication(channel, null)) { auditLog.logFailedLogin("", false, null, request); - log.warn("No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'"); + if (isTraceEnabled) { + log.trace( + "No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'"); + } return false; } else { // no reRequest possible