Got successful response from URL – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.13

Briefly, this error occurs when Elasticsearch successfully retrieves data from a specified URL. It’s not an error but an informational message indicating that a request to a URL was successful. If you’re seeing this frequently and it’s cluttering your logs, you might want to adjust your logging level to exclude informational messages. Alternatively, if you’re not expecting this message, check your Elasticsearch configuration and any scripts or applications interacting with Elasticsearch to ensure they’re only making necessary requests.

This guide will help you check for common problems that cause the log ” Got successful response [{}] from URL [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: response.

Log Context

Log “Got successful response [{}] from URL [{}]” classname is WaitForHttpResource.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    protected void checkResource(SSLContext ssl) throws IOException {
        final HttpURLConnection connection = buildConnection(ssl);
        connection.connect();
        final Integer response = connection.getResponseCode();
        if (validResponseCodes.contains(response)) {
            logger.info("Got successful response [{}] from URL [{}]"; response; url);
            return;
        } else {
            throw new IOException(response + " " + connection.getResponseMessage());
        }
    }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?