# Need to monitor pending messages in JMS queue for tibco

**URL:** <https://discuss.elastic.co/t/need-to-monitor-pending-messages-in-jms-queue-for-tibco/228885>\
**Category:** Logstash\
**Created:** [April 20, 2020, 2:28pm UTC](https://discuss.elastic.co/t/need-to-monitor-pending-messages-in-jms-queue-for-tibco/228885 "2020-04-20T14:28:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BPant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpant/32/45037_2.png) [@BPant](https://discuss.elastic.co/u/BPant)\
**Post date:** [April 20, 2020, 2:28pm UTC](https://discuss.elastic.co/t/need-to-monitor-pending-messages-in-jms-queue-for-tibco/228885/1 "2020-04-20T14:28:43Z")

</div>

Hi,

I want to monitor pending messages in a jms queue for tibco. I tried to use jms logstash plugin, however it doesn't give me the parameter "pending queue messages".

This is my logstash configuration:

jmsconfig.conf:

```auto
input {
    jms {
                include_header => true
                include_properties => true
                include_body => true
                use_jms_timestamp => false
                interval => 10
                destination => "logstash.queue"
                yaml_file => "/usr/share/logstash/config/jms/jms.yml"
                yaml_section => "ems"
                factory_settings => {
                                     exclusive_consumer => false
                }
    }
}
output {
elasticsearch {
                ilm_enabled => false
                manage_template => false
                hosts => '${ELASTIC_URL}'
                user => "${ELASTIC_USERNAME}"
                password => "${ELASTIC_PASSWORD}"
                index => "tibcoems-%{+yyyy.MM.dd}"
                }
}

jms.yml:

ems:
  :factory: com.tibco.tibjms.TibjmsConnectionFactory
  :serverUrl: tcp://XXXXX:7222
  :username: *********
  :password: ***********
  :require_jars:
    - /home/ec2-user/ELK/shared/jms-2.0.jar
    - /home/ec2-user/ELK/shared/tibjms.jar

```

---

<div class="post-metadata">

**Author:** ![BPant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpant/32/45037_2.png) [@BPant](https://discuss.elastic.co/u/BPant)\
**Post date:** [April 21, 2020, 9:26am UTC](https://discuss.elastic.co/t/need-to-monitor-pending-messages-in-jms-queue-for-tibco/228885/2 "2020-04-21T09:26:00Z")

</div>

Hi @magnusbaeck @spinscale

Could you please check this issue.

---

<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:** [May 19, 2020, 9:26am UTC](https://discuss.elastic.co/t/need-to-monitor-pending-messages-in-jms-queue-for-tibco/228885/3 "2020-05-19T09:26:02Z")

</div>

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