# Error with building table that shows dead messages in RabbitMQ

**URL:** <https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer, rabbitmq, dashboards-classic\
**Created:** [November 11, 2022, 11:27am UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245 "2022-11-11T11:27:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbonetto](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dbonetto](https://community.dynatrace.com/u/dbonetto)\
**Post date:** [November 11, 2022, 11:27am UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245/1 "2022-11-11T11:27:04Z")

</div>

I’m trying to build a simple table showing the dead messages in RabbitMQ.

In the data-explorer tab I’m running this query:  
builtin:tech.rabbitmq.topN\_queue\_messages\_ready:filter(in(“queue”, entitySelector(“entityName.contains(~“dead~”)”))):sort(value(auto,descending)):limit(100)

but it’s not working due to:  
Metric selector parse error: Illegal criterion: `entitySelector(“entityName.contains(~“dead~”)”)`

What am I doing wrong?  
Thank you in advance for your time and suggestions!

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [November 14, 2022, 7:30am UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245/2 "2022-11-14T07:30:25Z")

</div>

Entity selectors can only be applied to entity dimensions, the “queue” dimension in this metric is of type String.

---

<div class="post-metadata">

**Author:** ![dbonetto](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dbonetto](https://community.dynatrace.com/u/dbonetto)\
**Post date:** [November 14, 2022, 12:36pm UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245/3 "2022-11-14T12:36:25Z")

</div>

Thanks for your reply!

Is there a way to apply a filter “contains” on the queue dimension then? I tried but I couldn’t find a way to do it. Most likely it’s just my poor understanding of the syntax, sorry if it’s a basic question…

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [November 15, 2022, 6:13am UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245/4 "2022-11-15T06:13:16Z")

</div>

filter(contains(“queue”, “dead”)) should do the trick.

Will be hopefully added to the documentation soon.

---

<div class="post-metadata">

**Author:** ![dbonetto](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dbonetto](https://community.dynatrace.com/u/dbonetto)\
**Post date:** [November 15, 2022, 10:34am UTC](https://community.dynatrace.com/t/error-with-building-table-that-shows-dead-messages-in-rabbitmq/37245/5 "2022-11-15T10:34:44Z")

</div>

Thank you, that’s very helpful and solved my issue!
