How to monitor all messages arriving on the broker

When you create a HiveMQ Cloud cluster, the first thing you want to see is all messages arriving on the broker. The easiest way is to use the Web Client available at your console.hivemq.cloud.

Instructions

  1. Navigate your browser to https://console.hivemq.cloud/ and log in.

  2. In the menu on the left-hand side of the page click on the cluster you want to check.

  3. Create access credentials for MQTT clients
    instructions will depend on the type of the HiveMQ Cloud Cluster: Starter or Serverless, because the user interface is slightly different.

    1. HiveMQ Cloud Starter

      1. In the menu at the top of the page click on “Access Management”

      2. By default, there is already a default permission to publish and subscribe to any topic and a default role with these permissions. You only need to create user credentials.

        image-20240122-145313.png
        image-20240122-145220.png

         

      3. In the “Credentials” section, input the desired username, login, and password, select the role, and click “Create Credentials”. These credentials are for MQTT clients. These credentials are not to log in to console.hivemq.cloud.

         

    2. HiveMQ Cloud Serverless (Free and PayG)

      1. In the menu at the top of the page click on “Access Management”

      2. By default, there is already a default permission to publish and subscribe to any topic. You only need to create user credentials.

         

      3. Input username and login and password and click “Create Credential”

         

      4. Now proceed to test with Web Client.

  4. Test with Web Client

    1. In the menu at the top of the page click on “Web Client”

       

    2. On the web client page, input the username and password that you just created and click “Connect”

       

    3. Once the client is connected, scroll down to the subscription section and click the button “Subscribe to all topics”

       

    4. This will subscribe the client to the topic filter #. # is the wildcard which means all topics at any topic tree level. To learn more about MQTT topic wildcards read MQTT Topics, Wildcards, & Best Practices – MQTT Essentials: Part 5

    5. Scroll down the web client page and monitor all messages arriving on the broker

       

Related articles