Logstash : elasticsearch http procol and http_proxy

Description

Hi All,
I'm trying to configure the output elasticsearch with the protocol HTTP, in order to have more performance during the update on my ElasticSearch cluster, but with the first installation I can't update the index on ES.

I tried to start the logstash instance with the verbosity option and I received an error about my environment proxy configuration as you can see below

URI::InvalidURIError: bad URI(is not URI?): http://LOCAL\mlorenzi:xxxx@192.168.10.1:8080
split at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/uri/common.rb:176
parse at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/uri/common.rb:210
parse at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/uri/common.rb:747
URI at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/uri/common.rb:994
call at org/jruby/RubyMethod.java:128
URI at /opt/logstash/vendor/bundle/jruby/1.9/gems/faraday-0.9.0/lib/faraday/utils.rb:246
from at /opt/logstash/vendor/bundle/jruby/1.9/gems/faraday-0.9.0/lib/faraday/options.rb:223
proxy at /opt/logstash/vendor/bundle/jruby/1.9/gems/faraday-0.9.0/lib/faraday/connection.rb:286
initialize at /opt/logstash/vendor/bundle/jruby/1.9/gems/faraday-0.9.0/lib/faraday/connection.rb:83
__build_connections at /opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.1/lib/elasticsearch/transport/transport/http/faraday.rb:42
map at org/jruby/RubyArray.java:2409
__build_connections at /opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.1/lib/elasticsearch/transport/transport/http/faraday.rb:34
initialize at /opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.1/lib/elasticsearch/transport/transport/base.rb:32
initialize at /opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.1/lib/elasticsearch/transport/client.rb:90
new at /opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.1/lib/elasticsearch/transport.rb:25
build_client at /opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:62
client at /opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:15
initialize at /opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:58
register at /opt/logstash/lib/logstash/outputs/elasticsearch.rb:238
each at org/jruby/RubyArray.java:1613
outputworker at /opt/logstash/lib/logstash/pipeline.rb:220
start_outputs at /opt/logstash/lib/logstash/pipeline.rb:152

If I try to remove the environment variables listed below the communication works as expected.

The configuration of my logstash instance is:

Status

Assignee

Logstash Developers

Reporter

Marcello Lorenzi

Affects versions

Configure