Hello,
I'm hoping someone can help me.
I'm trying to output data over tcp from one logstash (logstash A) into the input of another (logstash B).
These are my config files from logstash A:-
output {
tcp {
host => "XX.X.XXX.XXX" #ip address for logstash B
mode => "server"
port => 3389
}
}
logstash B config:
input {
tcp {
mode => "client"
host => "XX.X.XX.XXXX" #ip address of logstash A
port => 3389
}
}
When I run logstash on logstash A, I receive the following error.
Errno::EADDRNOTAVAIL: Can't assign requested address - bind - Cannot assign requested address: bind
initialize at org/jruby/ext/socket/RubyTCPServer.java:118
new at org/jruby/RubyIO.java:852
register at c:/logstash/lib/logstash/outputs/tcp.rb:76
each at org/jruby/RubyArray.java:1613
outputworker at c:/logstash/lib/logstash/pipeline.rb:220
start_outputs at c:/logstash/lib/logstash/pipeline.rb
I've done a netstat -anp tcp | find ":3389" and the results show:-
TCP XX.X.XX.XX:3389 XX.XXX.XX.XX:49670 ESTABLISHED
I can see that port 3389 has been allocated as a source port but can't seem to configure it to get the data transfer working.
Can you please tell what I'm doing wrong?