mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
InetSocketTransportAddress needs port to be a number, silly me.
This commit is contained in:
parent
fb18f76277
commit
cebc71fc1d
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ module LogStash::Outputs::Elasticsearch
|
||||||
if options[:host]
|
if options[:host]
|
||||||
client.addTransportAddress(
|
client.addTransportAddress(
|
||||||
org.elasticsearch.common.transport.InetSocketTransportAddress.new(
|
org.elasticsearch.common.transport.InetSocketTransportAddress.new(
|
||||||
options[:host], options[:port]
|
options[:host], options[:port].to_i
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue