From cebc71fc1d22422e1110d4077cb613d9f28a7fbf Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Mon, 10 Feb 2014 17:05:07 -0800 Subject: [PATCH] InetSocketTransportAddress needs port to be a number, silly me. --- lib/logstash/outputs/elasticsearch/protocol.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/elasticsearch/protocol.rb b/lib/logstash/outputs/elasticsearch/protocol.rb index 8588cfdb8..8614db17c 100644 --- a/lib/logstash/outputs/elasticsearch/protocol.rb +++ b/lib/logstash/outputs/elasticsearch/protocol.rb @@ -227,7 +227,7 @@ module LogStash::Outputs::Elasticsearch if options[:host] client.addTransportAddress( org.elasticsearch.common.transport.InetSocketTransportAddress.new( - options[:host], options[:port] + options[:host], options[:port].to_i ) ) end