in lib/logstash/outputs/opensearch/http_client.rb [245:264]
def scheme
explicit_scheme = if ssl_options && ssl_options.has_key?(:enabled)
ssl_options[:enabled] ? 'https' : 'http'
else
nil
end
calculated_scheme = calculate_property(uris, :scheme, explicit_scheme, sniffing)
if calculated_scheme && calculated_scheme !~ /https?/
raise LogStash::ConfigurationError, "Bad scheme '#{calculated_scheme}' found should be one of http/https"
end
if calculated_scheme && explicit_scheme && calculated_scheme != explicit_scheme
raise LogStash::ConfigurationError, "SSL option was explicitly set to #{ssl_options[:enabled]} but a URL was also declared with a scheme of '#{explicit_scheme}'. Please reconcile this"
end
calculated_scheme
end