22 Aug 2024 06:26 AM
Dear All,
How can we negate multiple IBM MQ local queues in the entity selector while applying automatic tagging?
Regards,
Babar
Solved! Go to Solution.
22 Aug 2024 07:49 AM - edited 22 Aug 2024 08:01 AM
Hi @Babar_Qayyum ,
I suggest trying one of the following sample queries:
While I haven’t tested these with the IBM MQ extension, they worked well for me with a standard message queue. Please test these queries and let me know if they work for you.
For reference, here are similar queries using a generic QUEUE type:
Best Regards,
Mohamed
22 Aug 2024 08:08 AM
Hello @Mohamed_Hamdy
I was playing around with this one not(entityName.in, but it did not work in my case. I want to eliminate backout queues as a wild mask and others as queue names. The wild mask works only with the entityName as the value operator contains, but it does not accept the multiple values.
Regards,
Babar
22 Aug 2024 04:55 PM
Hו @Babar_Qayyum & @Mohamed_Hamdy
The follows work for me at customer site yesterday for metric selector:
ibmmq.queue.depth
:filter(in("dt.entity.ibmmq:local_queue",
entitySelector("
type(~"ibmmq:local_queue~"),
queue_manager(~"AAA.XXX.QMGR~"),
not(entityName.startsWith(~"QL.DMZ.COMPRETAIL.TO.PORTAL.INTERNET~")),
not(entityName.startsWith(~"QL.DMZ.COMPRETAIL.TO.RETAIL~"))
")))
:splitBy("dt.entity.ibmmq:local_queue")
and for Tag by entity selector
type("ibmmq:local_queue"),
queue_manager("AAA.BBB.QMGR"),
not(entityName.startsWith("QL.DMZ.COMPRETAIL.TO.PORTAL.INTERNET")),
not(entityName.startsWith("QL.DMZ.COMPRETAIL.TO.RETAIL"))
HTH
Yos
22 Aug 2024 05:33 PM - edited 22 Aug 2024 06:36 PM