# How-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq (https://github.com/logstash-plugins/logstash-output-rabbitmq)

**URL:** <https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-https-github-com-logstash-plugins-logstash-output-rabbitmq/112077>\
**Category:** Logstash\
**Created:** [December 16, 2017, 9:55am UTC](https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-https-github-com-logstash-plugins-logstash-output-rabbitmq/112077 "2017-12-16T09:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathap\_b](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@prathap\_b](https://discuss.elastic.co/u/prathap_b)\
**Post date:** [December 16, 2017, 9:55am UTC](https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-https-github-com-logstash-plugins-logstash-output-rabbitmq/112077/1 "2017-12-16T09:55:01Z")

</div>

Continuing the discussion from [How to setup Logstash agent secure SSL communication with RabbitMQ and eventually to ELK server](https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-and-eventually-to-elk-server/85248)

Hello,

I've been working on similar setup as in this topic ([How to setup Logstash agent secure SSL communication with RabbitMQ and eventually to ELK server](https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-and-eventually-to-elk-server/85248?u=prathap_b)). As per the instruction i've configured Logstash with .p12 certificate, but when i run the command "/opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf" i'm getting timeout exception.  
Could you anyone guide where i'm making mistake

input {  
file {  
path =\> "/var/log/messages"  
start\_position =\> "beginning"  
}  
}  
filter {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:system\_auth\_timestamp} %{SYSLOGHOST:system\_auth\_hostname} %{GREEDYDATA:command\_issued}: %{GREEDYDATA:message}" }  
add\_tag =\> "syslog"  
}  
}  
output {  
rabbitmq {  
exchange =\> "elasticsearch-exchange"  
exchange\_type =\> "direct"  
key =\> "logstash-routing\_key"  
ssl =\> true  
ssl\_certificate\_password =\> 'MySecretPawwd'  
ssl\_certificate\_path =\> '/path/to/client/certificate/keycert.p12'  
ssl\_version =\> "TLSv1.2"  
host =\> "rabbithost\_ip"  
vhost =\> "es\_vhost"  
durable =\> true  
persistent =\> true  
port =\> 5671  
user =\> "admin"  
password =\> "admin"  
}  
stdout {  
codec =\> rubydebug  
}  
}

SSL Certificates are generated following the instructions in below URL. Generated in rabbit and transferred to logstash agent...  
[http://www.rabbitmq.com/ssl.html](http://www.rabbitmq.com/ssl.html)

Any help here will be more useful. Thanks in advance. Below have pasted the error we are facing.

**Error:**  
Pipeline aborted due to error {:exception=\>java.util.concurrent.TimeoutException, :backtrace=\>["com.rabbitmq.utility.BlockingCell.get(com/rabbitmq/utility/BlockingCell.java:77)", "com.rabbitmq.utility.BlockingCell.uninterruptibleGet(com/rabbitmq/utility/BlockingCell.java:111)", "com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(com/rabbitmq/utility/BlockingValueOrException.java:37)", "com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(com/rabbitmq/client/impl/AMQChannel.java:367)", "com.rabbitmq.client.impl.AMQConnection.start(com/rabbitmq/client/impl/AMQConnection.java:293)", "com.rabbitmq.client.ConnectionFactory.newConnection(com/rabbitmq/client/ConnectionFactory.java:648)", "com.rabbitmq.client.ConnectionFactory.newConnection(com/rabbitmq/client/ConnectionFactory.java:678)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)", "RUBY.new\_connection\_impl(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare/session.rb:505)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:281)", "RUBY.converting\_rjc\_exceptions\_to\_ruby(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare/session.rb:467)", "RUBY.new\_connection\_impl(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare/session.rb:500)", "RUBY.initialize(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare/session.rb:136)", "RUBY.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare/session.rb:109)", "RUBY.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/march\_hare-2.15.0-java/lib/march\_hare.rb:20)", "RUBY.connect(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-mixin-rabbitmq\_connection-4.1.1-java/lib/logstash/plugin\_mixins/rabbitmq\_connection.rb:174)", "RUBY.connect!(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-mixin-rabbitmq\_connection-4.1.1-java/lib/logstash/plugin\_mixins/rabbitmq\_connection.rb:131)", "RUBY.register(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-rabbitmq-3.1.0-java/lib/logstash/outputs/rabbitmq.rb:40)", "RUBY.register(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/output\_delegator.rb:75)", "RUBY.start\_workers(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:181)", "org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)", "RUBY.start\_workers(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:181)", "RUBY.run(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:136)", "RUBY.start\_pipeline(/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/agent.rb:473)", "java.lang.Thread.run(java/lang/Thread.java:745)"], :level=\>:error}

---

<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:** [January 13, 2018, 9:55am UTC](https://discuss.elastic.co/t/how-to-setup-logstash-agent-secure-ssl-communication-with-rabbitmq-https-github-com-logstash-plugins-logstash-output-rabbitmq/112077/2 "2018-01-13T09:55:16Z")

</div>

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