All Apps and Add-ons

JMS Messaging Modular Input: How do I get only stats from JMS under ActiveMQ?

Path Finder

I have been at this for a couple of days now and it shows I know very little about JMS and/or ActiveMQ. All I want is the stats like size, consumerCount, enqueueCount and dequeueCount for a dashboard panel. I am not getting any errors from the logs and in reality it is returning the messages including the bodies. All I want are the stats--nothing else. The more stats the better. I have been testing this on two of the many queues we have here. The latest version of the inputs.conf (hand written) on each of the ActiveMQ servers returning information via a Universal Forwarder follows;

[jms]
jndi_initialcontext_factory = org.apache.activemq.jndi.ActiveMQInitialContextFactory
jndi_provider_url = tcp://localhost:61616
jms_connection_factory_name = ConnectionFactory
index = rds_qa
sourcetype = jms
init_mode = jndi

[jms://queue/dynamicQueues/outbound.mail.queue]
disabled = false
index_message_properties = true
index_message_header = true
strip_newlines = true
durable = false
browse_mode = stats
browse_queue_only = true

[jms://queue/dynamicQueues/rds.text.communication.queue]
disabled = false
index_message_properties = true
index_message_header = true
strip_newlines = true
durable = false
browse_mode = stats
browse_queue_only = true

I am assured it is something simple I am doing wrong. Could someone please point it out? For versions it is Splunk DevTest 6.5.1, Java openjdk version "1.8.0111", JMS Messaging Modular Input (jmsta) 1.5.1 and ActiveMQ 5.9.1. Hope I did not forget anything. BTW, there is not a blank line between [jms] and what follows--without the blank line it crunched everything onto one line ???

0 Karma
1 Solution

Ultra Champion

For a start you are using the wrong App.
The JMS (Java Message Service) App is for indexing messages from queues and topics.

If you want to monitor the message broker's statistics you should try using my JMX (Java Management Extensions) App for monitoring MBeans exposed by ActiveMQ , http://activemq.apache.org/jmx.html

View solution in original post

0 Karma

Ultra Champion

For a start you are using the wrong App.
The JMS (Java Message Service) App is for indexing messages from queues and topics.

If you want to monitor the message broker's statistics you should try using my JMX (Java Management Extensions) App for monitoring MBeans exposed by ActiveMQ , http://activemq.apache.org/jmx.html

View solution in original post

0 Karma

Path Finder

I was afraid you were going to respond with that. The primary reason I was looking at the jms app was to avoid needing a heavy forwarder to get the information. I ran into that with WebSphere apps and TAs. The Monitoring of Java Virtual Machines with JMX (app 668) app looks like it will fit the bill. Thanks for the quick response and if I find a need to index queues and topics--you do have a great app for that.

0 Karma