🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Subscribing to EVENTS published by Broker
Under the reserved topics section of docs - have a question
This is pretty close to tracking lifecycle changes of Broker managed objects as events at runtime, really great.
However, I did not receive any events even with a wild-card subscription '#LOG/>' in 'try-me' tab on the PS+ manager tool.
The doc says - "Subscribed to by management client applications" -
a) What is a management client application - Is it referring to SEMP clients?
b) Is there a way to track QUEUE level events such as client create, destroy, client connection, and disconnection?
Best Answer
-
You need to enable the publishing of broker and/or client events first to be able to get the events. One of my earlier posts shows you how to do it: https://solace.community/discussion/52/subscribing-to-log-messages-in-solace-cloud#latest
Once you start getting the events, this is good documentation to understand the format of the events:
https://docs.solace.com/Solace-PubSub-Event-Reference/event_ref_boiler.htmlThere are some queue level events that are raised when some thresholds are crossed...which can be configured via the PS+ Manager and there are client level events that are raised when a client connects/disconnects. I am not sure if there are specific events that are published when a client binds and unbinds to a queue.
1
Answers
-
You need to enable the publishing of broker and/or client events first to be able to get the events. One of my earlier posts shows you how to do it: https://solace.community/discussion/52/subscribing-to-log-messages-in-solace-cloud#latest
Once you start getting the events, this is good documentation to understand the format of the events:
https://docs.solace.com/Solace-PubSub-Event-Reference/event_ref_boiler.htmlThere are some queue level events that are raised when some thresholds are crossed...which can be configured via the PS+ Manager and there are client level events that are raised when a client connects/disconnects. I am not sure if there are specific events that are published when a client binds and unbinds to a queue.
1 -
Hi @giri, the idea here is you're using a message client to consume management events - say another client connecting. These management events will be generated by messaging clients - say by connecting - or management (SEMP) clients for instance creating a queue. Here's the event I got when I created a queue using the CLI:
Destination: Topic '#LOG/NOTICE/VPN/d2ca1b9816af/VPN_AD_QENDPT_CREATE/default'
...
32 30 32 31 2d 30 37 2d 32 38 54 31 34 3a 30 32 2021-07-28T14:02
3a 30 30 2e 35 39 34 2b 30 30 3a 30 30 20 4e 4f :00.594+00:00.NO
54 49 43 45 20 64 32 63 61 31 62 39 38 31 36 61 TICE.d2ca1b9816a
66 20 56 50 4e 3a 20 56 50 4e 5f 41 44 5f 51 45 f.VPN:.VPN_AD_QE
4e 44 50 54 5f 43 52 45 41 54 45 3a 20 64 65 66 NDPT_CREATE:.def
61 75 6c 74 20 2d 20 4d 65 73 73 61 67 65 20 56 ault.-.Message.V
50 4e 20 28 30 29 20 51 75 65 75 65 20 61 2d 74 PN.(0).Queue.a-t
65 73 74 20 63 72 65 61 74 65 64 00 est.created.The key is you have to enable these events for the Message VPN. In PubSub+ Broker Manager, go to the Message VPN settings tab, then open Advanced Settings. Towards the end of the page you'll see "Event Configuration." Enable those:
1