# Search for DB Queries in APM UI

**URL:** <https://discuss.elastic.co/t/search-for-db-queries-in-apm-ui/259077>\
**Category:** APM\
**Tags:** java, ui\
**Created:** [December 18, 2020, 9:47am UTC](https://discuss.elastic.co/t/search-for-db-queries-in-apm-ui/259077 "2020-12-18T09:47:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [December 18, 2020, 9:47am UTC](https://discuss.elastic.co/t/search-for-db-queries-in-apm-ui/259077/1 "2020-12-18T09:47:45Z")

</div>

Hey, can I somehow search for Transactions with DB Queries in the APM UI?

I tried:

span.destination.service.name  
span.destination.service.resource  
span.destination.service.type  
span.type  
span.action

Nothing worked. IDK What to use the search bar in the APM UI anyway, because most of the time it gives me nothing.

Thanks

---

<div class="post-metadata">

**Author:** ![dgieselaar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dgieselaar/32/46947_2.png) [@dgieselaar](https://discuss.elastic.co/u/dgieselaar)\
**Post date:** [December 20, 2020, 12:21pm UTC](https://discuss.elastic.co/t/search-for-db-queries-in-apm-ui/259077/2 "2020-12-20T12:21:59Z")

</div>

Hello @gruselglatz! Have you tried using Discover? These properties are available on spans, not transactions, and the search bar in the APM app only filters on the latter. However, you can get these spans from Discover, and use the trace.id from those spans to display the trace in the APM app (by entering it into APM app's search bar).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 10, 2021, 8:22am UTC](https://discuss.elastic.co/t/search-for-db-queries-in-apm-ui/259077/3 "2021-01-10T08:22:06Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
