lib/logstash/plugin_mixins/elasticsearch/common.rb
# Perform some ES options validations and Build the HttpClient.
# Note that this methods may sets the @user, @password, @hosts and @client ivars as a side effect.
# @param license_checker [#appropriate_license?] An optional license checker that will be used by the Pool class.
# @return [HttpClient] the new http client
Perform some ES options validations and Build the HttpClient.
Note that this methods may sets the @user, @password, @hosts and @client ivars as a side effect.
Perform some ES options validations and Build the HttpClient . Note that this methods may sets the @user @password @hosts and @client ivars as a side effect .
def build_client(license_checker = nil)
      params["license_checker"] = license_checker
      validate_authentication
      fill_hosts_from_cloud_id
      setup_hosts
      params["metric"] = metric
      if @proxy.eql?('')
        @logger.warn "Supplied proxy setting (proxy => '') has no effect"
      end
      ::LogStash::Outputs::ElasticSearch::HttpClientBuilder.build(@logger, @hosts, params)
    end
def build_client ( license_checker = nil ) params [ "license_checker" ] = license_checker validate_authentication fill_hosts_from_cloud_id setup_hosts params [ "metric" ] = metric if @proxy . eql? ( '' ) @logger . warn "Supplied proxy setting (proxy => '') has no effect" end :: LogStash :: Outputs :: ElasticSearch :: HttpClientBuilder . build ( @logger , @hosts , params ) end
Perform some ES options validations and Build the HttpClient.
Perform some ES options validations and Build the HttpClient .
# the following 3 options validation & setup methods are called inside build_client # because they must be executed prior to building the client and logstash # monitoring and management rely on directly calling build_client # see https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/934#pullrequestreview-396203307
the new http client
the new http client
HttpClient
license_checker
An optional license checker that will be used by the Pool class.
An optional license checker that will be used by the Pool class .