# Logstash jms input plugin: Has anybody been able to configure the plugin to use a IBM MQ Topic?

**URL:** <https://discuss.elastic.co/t/logstash-jms-input-plugin-has-anybody-been-able-to-configure-the-plugin-to-use-a-ibm-mq-topic/89151>\
**Category:** Logstash\
**Created:** [June 13, 2017, 7:34am UTC](https://discuss.elastic.co/t/logstash-jms-input-plugin-has-anybody-been-able-to-configure-the-plugin-to-use-a-ibm-mq-topic/89151 "2017-06-13T07:34:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raisinpit](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@raisinpit](https://discuss.elastic.co/u/raisinpit)\
**Post date:** [June 13, 2017, 7:34am UTC](https://discuss.elastic.co/t/logstash-jms-input-plugin-has-anybody-been-able-to-configure-the-plugin-to-use-a-ibm-mq-topic/89151/1 "2017-06-13T07:34:55Z")

</div>

I've been trying to get the plugin to work with a topic, however I keep getting a wrong number of arguments (2 for 1) exception and the JMS Consumer dies . I have gotten the plugin to work with queue's before and using that configuration as a base I created this:

logstash.conf file:  
jms {  
yaml\_file =\> "/usr/share/logstash/jms.yml"  
yaml\_section =\> "wmq"  
include\_header =\> true  
include\_properties =\> true  
include\_body =\> true  
use\_jms\_timestamp =\> true  
destination =\> "TOPIC"  
interval =\> 1  
pub\_sub =\> true  
}

jms.yml:  
wmq:  
🏭 com.ibm.mq.jms.MQTopicConnectionFactory  
:queue\_manager: QM  
:host\_name: HOST  
:channel: ADMIN.CHANNEL  
:port: 1414

# Transport Type: com.ibm.mq.jms.JMSC::MQJMS\_TP\_CLIENT\_MQ\_TCPIP

:transport\_type: 1  
:username: usr  
:password: pass  
:require\_jars:  
- /usr/share/logstash/com.ibm.mqjms.jar

As I have mentioned; I was able to access queue's by setting the "factory" to com.ibm.mq.jms.MQTopicConnectionFactory and setting the pub\_sub value to false.

Could somebody please give me some pointers or an example of where to go from here?

Thanks!

---

<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:** [July 11, 2017, 7:35am UTC](https://discuss.elastic.co/t/logstash-jms-input-plugin-has-anybody-been-able-to-configure-the-plugin-to-use-a-ibm-mq-topic/89151/2 "2017-07-11T07:35:00Z")

</div>

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