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
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...