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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...