# Logstash Stomp-Plugin can't connect to ActiveMQ

**URL:** <https://discuss.elastic.co/t/logstash-stomp-plugin-cant-connect-to-activemq/221844>\
**Category:** Logstash\
**Created:** [March 3, 2020, 9:33am UTC](https://discuss.elastic.co/t/logstash-stomp-plugin-cant-connect-to-activemq/221844 "2020-03-03T09:33:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roma\_Kap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roma_kap/32/63694_2.png) [@Roma\_Kap](https://discuss.elastic.co/u/Roma_Kap)\
**Post date:** [March 3, 2020, 9:33am UTC](https://discuss.elastic.co/t/logstash-stomp-plugin-cant-connect-to-activemq/221844/1 "2020-03-03T09:33:40Z")

</div>

Hello,  
i'am new in Logstash and i try to connect from WindowsVM with stomp output-plugin to activeMQ with SSL.  
I've checked a connection to activeMQ like this:

> Test-NetConnection -ComputerName myActiveMq -Port 50614

Reply is:

> ComputerName : myActiveMq  
> RemoteAddress : 12.128.2.67  
> RemotePort : 50614  
> InterfaceAlias : Ethernet 2  
> SourceAddress : 12.128.2.8  
> TcpTestSucceeded : True

My logstash.conf file looks like this:

> input {  
> file {  
> path =\> [  
> "C:\ta\test\test.txt"  
> ]  
> start\_position =\> "beginning"  
> }}  
> output {  
> stomp {  
> debug =\> "true"  
> id =\> "my\_plugin\_id"  
> destination =\> "/topic/logstash"  
> port =\> "50614"  
> user =\> "user"  
> host =\> "myActiveMq"  
> password =\> "user123"  
> }}  
> After starting:

> C:\Users\USER\Documents\logstash-7.6.0\logstash-7.6.0\bin\> .\logstash --debug -f ..\config\logstash.conf

Error message is:

> [2020-03-02T10:14:59,351][DEBUG][logstash.outputs.stomp]  
> [main] Failed to connect to stomp server, will retry {:exception=\>#\<OnStomp::ConnectionTimeoutError: OnStomp::ConnectionTimeoutError\>,  
> :backtrace=\>["C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/onstomp-1.0.12/lib/onstomp/connections/base.rb:266:in `io\_process\_read'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/onstomp-1.0.12/lib/onstomp/connections/base.rb:109:in `connect'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/onstomp-1.0.12/lib/onstomp/connections.rb:49:in `connect'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/onstomp-1.0.12/lib/onstomp/client.rb:86:in `connect'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-stomp-3.0.9/lib/logstash/outputs/stomp.rb:42:in `connect'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-stomp-3.0.9/lib/logstash/outputs/stomp.rb:64:in `register'",  
> "org/logstash/config/ir/compiler/OutputStrategyExt.java:106:in `register'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:48:in `register'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:200:in `block in register_plugins'", "org/jruby/RubyArray.java:1814:in `each'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:199:in `register\_plugins'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:501:in `maybe\_setup\_out\_plugins'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:212:in `start\_workers'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:154:in `run'",  
> "C:/Users/USER/Documents/logstash-7.6.0/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:109:in `block in start'"]}

i suppose, it is because, that ActiveMQ expects ssl connection and it is not one.  
What could i do?  
Thx

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2020, 9:34am UTC](https://discuss.elastic.co/t/logstash-stomp-plugin-cant-connect-to-activemq/221844/2 "2020-03-31T09:34:02Z")

</div>

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