All Apps and Add-ons

Using JMS Messaging Modular Input to connect to Tibco, how to start with 5 consumers on the queue without saving it all the time?

dimitryz
Path Finder

Hello ,

Our client is using JMS Messaging Modular Input to connect to Tibco.

The client sees following:
Every time he saves the definitions – another consumer is raised in the tibco queue.
Same issue is for two different environments.

Our client would like to start with 5 consumers on the queue without saving it all the time.

Thanks

0 Karma

Damien_Dallimor
Ultra Champion

If you want 5 consumers on the same queue , then you simply create 5 stanzas in inputs.conf and these will run in parallel in multiple threads in the one JMS Messaging Modular Input JVM instance

You can put any common shared properties in a parent stanza [jms].

Example of 5 consumers for queue named foo.

[jms]
durable = 0
index = main
index_message_header = 1
index_message_properties = 1
init_mode = jndi
jms_connection_factory_name = SplunkQueueConnectionFactory
jndi_initialcontext_factory = com.tibco.tibjms.naming.TibjmsInitialContextFactory
jndi_pass = abc
jndi_provider_url = tibjmsnaming://10.10.10.10:7243
jndi_user = abc
sourcetype = tibco
user_jndi_properties = com.tibco.tibjms.naming.security_protocol=ssl,com.tibco.tibjms.naming.ssl_enable_verify_host=false,com.tibco.tibjms.naming.ssl_vendor=j2se-default
destination_pass = abc
destination_user = abc
strip_newlines = 0

[jms://queue/consumer1:foo]
source = foo_consumer1
disabled = 0

[jms://queue/consumer2:foo]
source = foo_consumer2
disabled = 0

[jms://queue/consumer3:foo]
source = foo_consumer3
disabled = 0

[jms://queue/consumer4:foo]
source = foo_consumer4
disabled = 0

[jms://queue/consumer5:foo]
source = foo_consumer5
disabled = 0

If you edit inputs.conf directly to accomplish this , then restart Splunk, you should see the JMS Mod Input starting once with 5 consumers.

0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...