All Apps and Add-ons

How to resolve "HTTP 400 Bad request" error when creating JMS input with HTTP Event Collector mode?

jdhruti
New Member

Anyone having any luck with creating JMS Input with HEC (HTTP Event Collector) mode (output_type)?

I am getting HTTP 400 Bad request error when the messages are sent to the queue.
Below is my Input.
Let me know if i am doing anything wrong.

inputs.conf

[ jms://queue/queue_name] 
browse_frequency = -1
browse_mode = all 
browse_queue_only = 0
destination_pass = password
destination_user = username 
durable= 0 
hec_batch_mode = 0 
hec_https = 1 
hec_port = 8088 
hec_token = token
index = hadoopmon
index_message_header = 0
index_message_properties = 0 
init_mode  = jndi 
jms_connection_factory_name = SplunkQConnectionFactory 
jndi_initialcontext_factory = com.sun.jndi.fscontext.RefFSContextFactory
jndi_pass = password
jndi_provider_url = binding file location
jndi_user = username
message_handler_impl = com.splunk.modinput.jms.custom.handler.BodyOnlyMessageHandler
output_type = hec 
source = queue/queue_name
sourcetype = hadoopmon_dev
strip_newlines = 1
0 Karma

naomibn
Explorer

We found the issue at our side. Un check - Indexer acknowledgement.

0 Karma

naomibn
Explorer

Hello,
Did you find any solution to this issue. unfortunately, we have the same problem .:(

Thanks.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...