Overview of active topics in IoT Core
I'm trying to find a list of active topics in our account. During testing it's very difficult to understand what devices are publishing to which topics and how often. Worse, a device could be publishing to a random topic and could be billing for messages we can't find.
It's a feature we've used heavily in other MQTT brokers like EMQX & HiveMQ.
I think it would be a very useful feature to have a topic overview where all topics recently used in the broker are listed along with their volume of use. This would be especially useful for debugging topics when trying to define an application-wide topic schema.
Perhaps there is a way to do this already?
fields @timestamp, @message | filter eventType = 'Publish-In' | stats count(*) by topicName
This will give you a list of every topic during that timeframe and the number of messages published to each topic.
That did exactly what I needed, thank you!
Is there a limitation on the number of topics in IoT Core?Accepted Answerasked 2 years ago
Can I get a list of iOT topics?
What topics do CDK belong with?Accepted Answerasked 6 months ago
What happened to the service level "topics" of the old forums?asked 7 months ago
Proper way to interact with resources/services outside of GG v2asked a year ago
More clarity on Tags vs Topicsasked 7 months ago
Set up IOT with MQTT?
Fleet provisioning and lambda triggering topicsasked 9 months ago
Does Updating an Active MSK cause data lossAccepted Answerasked 5 months ago
Overview of active topics in IoT CoreAccepted Answerasked a month ago