Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

Subscribing to EVENTS published by Broker

giri
giri Member, Administrator, Employee Posts: 116 admin
edited February 2022 in PubSub+ Event Broker #1

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?

Tagged:

Best Answer

Answers

  • himanshu
    himanshu Member, Employee Posts: 67 Solace Employee
    #3 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.html

    There 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.

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee

    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:

  • nram
    nram Member, Employee Posts: 80 Solace Employee
    edited July 2021 #5

    Hello @giri , for a) Do you have these settings turned on for the VPN? These are turned off by default.

  • nram
    nram Member, Employee Posts: 80 Solace Employee

    b) If you have Publish Client Events enabled, you will receive all client related events such as connect, disconnect, flow create, destroy,.

  • giri
    giri Member, Administrator, Employee Posts: 116 admin

    Thank you @himanshu @TomF and @nram. Very good pointers and references 🙏

    I will try to build a small program around this to understand the inner workings sometime soon. Thx!!

This Month's Leaders

This Week's Leaders