All Apps and Add-ons

JMS Modular Input and IBM MQ - What is minimum permission to be granted?

rahul927
Explorer

Unless the splunk user is added to mqm group the TA does not seem work. 2035 unauthorised error appears in the log.
But we are not allowed to add splunk user to mqm group. What are the minimum permissions on MQ that needs to be granted to this user, pl mention. (Like QMgr Connect, Inquire, ) Also we are using MQ Topic to subscribe to not Queue.
Thank you

0 Karma
1 Solution

rahul927
Explorer

Solved- The parent topic had to be given access as well.
SYSTEM.BASE.TOPIC

dspmqaut -m QMG01 -n SYSTEM.BASE.TOPIC -t topic -p "splunk"
Entity splunk has the following authorizations for object SYSTEM.BASE.TOPIC:
pub
sub
resume

View solution in original post

0 Karma

rahul927
Explorer

Solved- The parent topic had to be given access as well.
SYSTEM.BASE.TOPIC

dspmqaut -m QMG01 -n SYSTEM.BASE.TOPIC -t topic -p "splunk"
Entity splunk has the following authorizations for object SYSTEM.BASE.TOPIC:
pub
sub
resume

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

Hi @rahul927 - Glad to hear that you've found the answer to your own question. Please don't forget to resolve the post by clicking "Accept" below your answer. Thanks!

0 Karma

rahul927
Explorer

spunk user is granted +all on the Qmgr, Topic and Topic string. Still we get a 2035. Are there any explicit permissions that need to be granted on the JMS objects (TCF, Topic) too?

0 Karma

rahul927
Explorer

on the topic connection factory - tcf(TCF_QTIIB01)
transport is set to BIND.
Qmgr is on the same machine as JMS TA.
at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.run(Unknown Source)
09-20-2016 09:35:18.319 +0200 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/jms_ta/bin/jms.py" Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').
09-20-2016 09:35:18.319 +0200 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/jms_ta/bin/jms.py" at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:209)

User splunk is created on the local machine and granted the below access:
setmqaut -m QMG01-t qmgr -p splunk +all
setmqaut -m QMG01 -n COMMONEVENT.TOPIC -t topic -p splunk +all
setmqaut -m QMG01 -n $SYS/Broker/QMG01/Monitoring/# -t topic -p splunk +all

When splunk is added to mqm group it works, 2035 is not shown. However cannot have splunk added to mqm, we are allowed to only grant minimum required permissions to just connect to QMGr and subscribe to the topic.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...