Logstash is not listening on port 5045 in centos on 'oracle VM VirtualBox

(Albert Stark) #1

I am not sure this is the right forum for this question but I will ask it any way.

We are running logstash in centos on 'oracle VM VirtualBox' . The Virtualbox is located on my Windows 7 pc. We configure VirtuaBox to map ports
PC to VM
2222 to 22
5045 to 5055
9905 to 9915

We can ssh to port 2222 and open a remote shell on the centos server. But logstash can not open port 5055 or port 9915.

Both ports are unused by centos. The same pipeline configuration works correctly when run from a redhat linux server or directly on my PC. Any idea what can be wrong

[2018-02-05T12:00:54,796][INFO ][org.logstash.beats.Server] Starting server on port: 5055
[2018-02-05T12:00:55,199][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SocketError: initialize: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:115:in initialize'", "org/jruby/RubyIO.java:871:innew'", "/opt/pki/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/binder.rb:234:in add_tcp_listener'", "(eval):2:inadd_tcp_listener'", "/opt/pki/logstash/logstash-core/lib/logstash/webserver.rb:88:in start_webserver'", "/opt/pki/logstash/logstash-core/lib/logstash/webserver.rb:44:inrun'", "org/jruby/RubyRange.java:476:in each'", "org/jruby/RubyEnumerable.java:971:ineach_with_index'", "/opt/pki/logstash/logstash-core/lib/logstash/webserver.rb:39:in run'", "/opt/pki/logstash/logstash-core/lib/logstash/agent.rb:232:instart_webserver'"]}

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.