Using default proxy for http input and slack hipchat pagerduty webhook actions – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-6.8

Briefly, this error occurs when Elasticsearch is configured to use default proxy settings for HTTP input and various actions like Slack, HipChat, PagerDuty, and webhook. This might cause issues if the default proxy settings are incorrect or not suitable for your environment. To resolve this, you can specify the correct proxy settings in the Elasticsearch configuration file. Alternatively, if you don’t need to use a proxy, you can disable it in the configuration. Also, ensure that the specified actions (Slack, HipChat, etc.) are correctly configured and accessible via the specified proxy.

This guide will help you check for common problems that cause the log ” Using default proxy for http input and slack/hipchat/pagerduty/webhook actions [{}:{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Using default proxy for http input and slack/hipchat/pagerduty/webhook actions [{}:{}]” classname is HttpClient.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        String proxyHost = HttpSettings.PROXY_HOST.get(settings);
        Scheme proxyScheme = HttpSettings.PROXY_SCHEME.exists(settings) ?
                Scheme.parse(HttpSettings.PROXY_SCHEME.get(settings)) : Scheme.HTTP;
        int proxyPort = HttpSettings.PROXY_PORT.get(settings);
        if (proxyPort != 0 && Strings.hasText(proxyHost)) {
            logger.info("Using default proxy for http input and slack/hipchat/pagerduty/webhook actions [{}:{}]"; proxyHost; proxyPort);
        } else if (proxyPort != 0 ^ Strings.hasText(proxyHost)) {
            throw new IllegalArgumentException("HTTP proxy requires both settings: [" + HttpSettings.PROXY_HOST.getKey() + "] and [" +
                    HttpSettings.PROXY_PORT.getKey() + "]");
        }

 

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?