# How can you find topics that have no subscriptions?

**URL:** <https://community.solace.com/t/how-can-you-find-topics-that-have-no-subscriptions/1159>\
**Category:** Solace Event Broker\
**Created:** [February 18, 2022, 6:38pm UTC](https://community.solace.com/t/how-can-you-find-topics-that-have-no-subscriptions/1159 "2022-02-18T18:38:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamilAhmed](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/jamilahmed/32/78_2.png) [@JamilAhmed](https://community.solace.com/u/JamilAhmed)\
**Post date:** [February 18, 2022, 6:38pm UTC](https://community.solace.com/t/how-can-you-find-topics-that-have-no-subscriptions/1159/1 "2022-02-18T18:38:02Z")

</div>

A publisher can be producing events on a topic that have no interested consumers.  
Is there a way to list those topics for the purposes of clean-up or decommission of unused flows?  
This condition would also be causing the client counter Ingress Discard - No Subscription Match to increment.

---

<div class="post-metadata">

**Author:** ![JamilAhmed](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/jamilahmed/32/78_2.png) [@JamilAhmed](https://community.solace.com/u/JamilAhmed)\
**Post date:** [February 18, 2022, 6:48pm UTC](https://community.solace.com/t/how-can-you-find-topics-that-have-no-subscriptions/1159/2 "2022-02-18T18:48:52Z")

</div>

The broker maintains an in-memory rolling log of these topics, at a maximum of 1000 entries.  
This log can be viewed within the CLI with the following command:

> show log no-subscription-match \>&nbsp;show log no-subscription-match message-vpn myVPN \>  
> This same command can also be issued over SEMPv1 with the following request XML:  
>   
> &nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myVPN  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;  
>   
> A curl example would be like so:  
> curl -d @get-no-subscription-match.xml -u user:pass&nbsp; [https://broker-hostname:943/SEMP](https://broker-hostname:943/SEMP)  
> where the file get-no-subscription-match.xml \> contains the above request XML.  
> The response contains an entry for the published topic each time it was published to, along with details of the client-name and client-username.  
>   
> &nbsp;  
> &nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;solclientjs/chrome-98.0.4758-Windows-0.0.0/3560415772/0001  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;solace-cloud-client  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myVPN  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testing/no-sub/match  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;solclientjs/chrome-98.0.4758-Windows-0.0.0/3560415772/0001  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;solace-cloud-client  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my VPN \>   
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testing/no-sub/match  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;&nbsp;  
> &nbsp;&nbsp;  
> &nbsp;
