# Logstash v6 JMS input plugin error

**URL:** <https://discuss.elastic.co/t/logstash-v6-jms-input-plugin-error/107951>\
**Category:** Logstash\
**Created:** [November 16, 2017, 2:10pm UTC](https://discuss.elastic.co/t/logstash-v6-jms-input-plugin-error/107951 "2017-11-16T14:10:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [November 16, 2017, 2:10pm UTC](https://discuss.elastic.co/t/logstash-v6-jms-input-plugin-error/107951/1 "2017-11-16T14:10:03Z")

</div>

I am using Logstash v.6 and trying to get ActiveMQ to work as an input. I am trying to use jms-input plugin.  
My Activem MQ is on a remote Windows machine, whereas Logstash is on a Centos machine.

I have two issues:  
1)When configuring jms input plugin, I have the following error when running logstash:  
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties  
SLF4J: Class path contains multiple SLF4J bindings.  
SLF4J: Found binding in [jar:file:/usr/share/logstash/logstash-core/lib/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]  
SLF4J: Found binding in [jar:file:/etc/logstash/conf.d/logstash-input-jms/activemq-all-5.11.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]  
SLF4J: See [http://www.slf4j.org/codes.html#multiple\_bindings](http://www.slf4j.org/codes.html#multiple_bindings) for an explanation.  
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

This is because my input plugin is configured as follows:  
input {  
jms {  
include\_header =\> true  
include\_properties =\> true  
include\_body =\> true  
use\_jms\_timestamp =\> true  
interval =\> 10  
destination =\> "/jms/EVENTS"  
broker\_url =\> "xxxx"  
require\_jars =\> true  
yaml\_file =\> "/etc/logstash/conf.d/logstash-input-jms/logstash.yml"  
yaml\_section =\> "activemq"  
}  
where logstash.yml looks like:  
activemq:  
🏭 org.apache.activemq.ActiveMQConnectionFactory  
:broker\_url: tcp://xxxxxx:61616  
:object\_message\_serialization\_defered: true  
:require\_jars:  
- /etc/logstash/conf.d/logstash-input-jms/activemq-all-5.11.1.jar  
- /etc/logstash/conf.d/logstash-input-jms/log4j-1.2.17.jar

I cannot find the appropriate pom.xml file to get rid of error. Any ideas please? Also, pipeline does work as I see its in running state in log, I assume pipeline works correctly and this is only an error message?

1. It seems that no content comes in via the configured destination. I have configured stomp alongside, where I specify the exact same destination and broker URL and I receive output. What am I doing wrong in the jms input plugin configuration, that I get nothing in return? Should the logstash.yml have the require\_jars located on the Windows ActiveMQ machine, or my Logstash Linux machine?

---

<div class="post-metadata">

**Author:** ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)\
**Post date:** [November 17, 2017, 1:41pm UTC](https://discuss.elastic.co/t/logstash-v6-jms-input-plugin-error/107951/2 "2017-11-17T13:41:10Z")

</div>

I managed to get it working with adding pub\_sub tag set to true. I believe this was necessary as I was reading from a topic.

---

<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:** [December 15, 2017, 1:41pm UTC](https://discuss.elastic.co/t/logstash-v6-jms-input-plugin-error/107951/3 "2017-12-15T13:41:35Z")

</div>

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