# Logstash JMS Input version 7.4.0

**URL:** <https://discuss.elastic.co/t/logstash-jms-input-version-7-4-0/204776>\
**Category:** Logstash\
**Created:** [October 23, 2019, 6:00am UTC](https://discuss.elastic.co/t/logstash-jms-input-version-7-4-0/204776 "2019-10-23T06:00:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thrishod](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@thrishod](https://discuss.elastic.co/u/thrishod)\
**Post date:** [October 23, 2019, 6:00am UTC](https://discuss.elastic.co/t/logstash-jms-input-version-7-4-0/204776/1 "2019-10-23T06:00:55Z")

</div>

Hi All,  
I am very newbie to ELK and my requirement is to read the messages from IBM WMQ.

I have setup the queue manager, Queue, JMS queue, Binding etc.. as needed.  
In order to read messages from IBM WMQ, I believe logstash needs a JMS Input plugin.

Honestly i am not sure which plugin should be used from the below 2 options

1. plugin : logstash\_jms\_ibm\_mq
2. plugin : logstash-input-jms-master

Request you to kindly suggest me which one should be used and how it can be installed and reading messages from JMS administered objects on IBM WMQ can be done.  
Is there any installation guide or Process document available for windows . If yes can you kindly share the same please.

Following options i have tried and it's throwing some error.  
Downloaded the logstash-input-jms.zip and logstash-input-jms-master.zip from links below

> **[saudurehman/logstash\_jms\_ibm\_mq](https://github.com/saudurehman/logstash_jms_ibm_mq)**
>
> Logstash JMS Input IBM MQ Example. Contribute to saudurehman/logstash\_jms\_ibm\_mq development by creating an account on GitHub.

  
[https://codeload.github.com/logstash-plugins/logstash-input-jms/zip/master](https://codeload.github.com/logstash-plugins/logstash-input-jms/zip/master)

- Installing plugin : logstash\_jms\_ibm\_mq  
Following is the command i am running and Getting the below Error  
**option 1. Command run without .zip extension logstash\_jms\_ibm\_mq**  
C:\logstash-7.4.0\logstash-7.4.0\bin\>logstash-plugin install logstash\_jms\_ibm\_mq  
ERROR: Something went wrong when installing logstash\_jms\_ibm\_mq, message: Net::OpenTimeout

**option 2 Command run with .zip extension logstash\_jms\_ibm\_mq**  
C:\logstash-7.4.0\logstash-7.4.0\bin\>logstash-plugin install logstash\_jms\_ibm\_mq.zip  
ERROR: Something went wrong when installing logstash\_jms\_ibm\_mq.zip, message: Net::OpenTimeout

- Installing plugin : logstash-input-jms-master  
C:\logstash-7.4.0\logstash-7.4.0\bin\>logstash-plugin install logstash-input-jms-master  
ERROR: Something went wrong when installing logstash-input-jms-master, message: Net::OpenTimeout

C:\logstash-7.4.0\logstash-7.4.0\bin\>logstash-plugin install logstash-input-jms-master.zip  
ERROR: Something went wrong when installing logstash-input-jms-master.zip, message: Net::OpenTimeout  
For more details i have attached the plugins what is downloaded and the error screen shot from windows command console

 ![JMS](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f111a8f8a6263ff406ba709b3b4a1e7276c9aa07.png) ![logstash-plugin%20install%20error](https://us1.discourse-cdn.com/elastic/original/3X/0/8/08b3187b5a7f08826daed8aa1f036ea67b4e9e37.png) ![logstash-plugins%20Downloaded](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4077a342fed2e5d6876b1867d0e8e7f0b128154.png)

---

<div class="post-metadata">

**Author:** ![thrishod](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@thrishod](https://discuss.elastic.co/u/thrishod)\
**Post date:** [October 31, 2019, 6:38am UTC](https://discuss.elastic.co/t/logstash-jms-input-version-7-4-0/204776/2 "2019-10-31T06:38:52Z")

</div>

The plugin was already available and installed  
\<\< C:\logstash-7.4.0\logstash-7.4.0\vendor\bundle\jruby\2.5.0\gems\logstash-input-jms-3.1.1-java

> >

## Created a local queue and the modified it to a a JMS queue on IBM WMQ by using a binding file. Update logstash.conf file and added the below content

# Test JMS Input read from queue

input  
{  
jms {  
include\_header =\> true  
include\_properties =\> true  
include\_body =\> true  
use\_jms\_timestamp =\> true  
interval =\> 10  
destination =\> "ELK.QUEUE"  
yaml\_file =\> "C:\logstash-7.4.0\logstash-7.4.0\bin\mq.yml"  
yaml\_section =\> "wmq"  
#codec =\> "json"  
}  
}

# test JMS output : Write to Logstash and Search on Kibana with index as test\_jms

## output { elasticsearch { hosts =\> ["localhost:9200"] index =\> "test\_jms" } stdout { codec =\> rubydebug } }

## Modified logstash.yml \<\< because mine is a basic licence\>\> added the below line

## xpack.monitoring.enabled: false

Modified the mq.yml located at \<\<C:\logstash-7.4.0\logstash-7.4.0\bin\mq.yml\>

# 

* * *

# IBM WebSphere MQ

wmq:  
🏭 com.ibm.mq.jms.MQQueueConnectionFactory  
:queue\_manager: ICCELK01  
:host\_name: localhost  
:channel: SYSTEM.ADMIN.SVRCONN  
:port: 1414

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

:transport\_type: 1

# :username: app

# :password: password

## :require\_jars: - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.dhbcore.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.axis2.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.commonservices.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.headers.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.jmqi.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.jms.Nojndi.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.pcf.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.soap.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mq.tools.ras.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/com.ibm.mqjms.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/javax.jms.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/javax.resource.jar - C:/logstash-7.4.0/logstash-7.4.0/bin/jars/javax.transaction.jar

Hope this helps anyone facing the issue or want to connect to IBM WMQ.

---

<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:** [November 28, 2019, 6:46am UTC](https://discuss.elastic.co/t/logstash-jms-input-version-7-4-0/204776/3 "2019-11-28T06:46:16Z")

</div>

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