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
30 Jan 2025 08:21 AM - edited 30 Jan 2025 09:14 AM
Hello @Yosi_Neuman @Mohamed_Hamdy
What issues exist with the current entity selector intended for implementing auto tagging?
type("ibmmq:channel"),queue_manager("ABCD"),entityName("XYZ")
entitySelector Predicate name 'queue_manager' not applicable for type ibmmq:channel
Regards,
Babar
30 Jan 2025 12:40 PM
Hi @Babar_Qayyum ,
I think you can use the following
type("ibmmq:queue_manager"),entityName("ABCD")
Regards,
Hamdy
02 Feb 2025 04:11 AM
Dear @Mohamed_Hamdy
Thank you for your comments.
I wish to assign tags to specific channels on specific queue managers.
Regards,
Babar
07 Feb 2025 01:00 PM
Hi @Babar_Qayyum did you come right with this?
I am struggling with the same thing, tagging specific IBM MQ Channels with entity selector
Regards,
Pieter
07 Feb 2025 03:05 PM
Hello @pieter_luttig
I successfully implemented a workaround by utilizing an auto tag for specific channels. This allowed me to filter by the tag and the name of a queue manager to present a tile on the dashboard.
Regards,
Babar