# How to get and test information on discarded messages

**URL:** <https://community.solace.com/t/how-to-get-and-test-information-on-discarded-messages/149>\
**Category:** Training, Tips and Tricks\
**Created:** [January 7, 2020, 3:44pm UTC](https://community.solace.com/t/how-to-get-and-test-information-on-discarded-messages/149 "2020-01-07T15:44:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hong](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/hong/32/1613_2.png) [@hong](https://community.solace.com/u/hong)\
**Post date:** [January 7, 2020, 3:44pm UTC](https://community.solace.com/t/how-to-get-and-test-information-on-discarded-messages/149/1 "2020-01-07T15:44:13Z")

</div>

**Problem**

You see that you are having a lot of ingress discards due to No Subscription Match and are looking for more information about these messages. The information that might be pertinent is: Topic, Client Username, and Message VPN name.

**Solution**

Use the following command to get the information about the messages:

`solace> show log no-subscription-match [client-username <username>][client-name <name>] [message-vpn <vpn-name>] [wide]`

You will then be able to see the Topic, Client Username, and Message VPN name on the last 1,000 discarded messages.

Read more on [no-subscription-match](https://docs.solace.com/Configuring-and-Managing/Displaying-Logs.htm#Displaying_Logs_No_Sub_Match "no-subscription-match").

You can use SDKPerf to test if the solution works. Here is an example for publishing a single message with no topic match:

`[wskinner@dev3-225 ~]$ sdkperf_c_d36 -cip=192.168.164.199 -cu=default@default -ptl=topic -mn=1 -mt=persistent -msa=10`

**Result**

Here you can see the CLI output:

`vmr-132-44> show log no-subscription-match`

Most recent no-subscription-match events:

| Client | Username | Message VPN | Topic |
| --- | --- | --- | --- |
| dev3-225/9209/#00000001 | default | default | topic`` |
