# V2 API - Filter Transformation Wildcard Search???

**URL:** <https://community.dynatrace.com/t/v2-api-filter-transformation-wildcard-search/34118>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [February 11, 2022, 9:01pm UTC](https://community.dynatrace.com/t/v2-api-filter-transformation-wildcard-search/34118 "2022-02-11T21:01:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![louis\_gallo](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@louis\_gallo](https://community.dynatrace.com/u/louis_gallo)\
**Post date:** [February 11, 2022, 9:01pm UTC](https://community.dynatrace.com/t/v2-api-filter-transformation-wildcard-search/34118/1 "2022-02-11T21:01:33Z")

</div>

In the filter transformations, I can do prefix, suffix, a few other functions, but no wildcard search. Is that possible?

custom.db.query:filter(and(eq(query\_name,oracledbinsights\_cpucount))):splitBy(dbname):avg:auto:sort(value(avg,descending)):**filter(prefix(“dbname”,“myserver”))**

This query will do the prefix, but I cannot seem to find how to do a wildcard. In this case, I would like any dbname with “myserver” in the string.

Is this possible?

Thanks,

Lou

---

<div class="post-metadata">

**Author:** ![dajunki](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dajunki](https://community.dynatrace.com/u/dajunki)\
**Post date:** [March 22, 2022, 1:17pm UTC](https://community.dynatrace.com/t/v2-api-filter-transformation-wildcard-search/34118/2 "2022-03-22T13:17:37Z")

</div>

You could try using the entitySelector.&nbsp; I think values in entityName use a “like”

entitySelector(“type( **Your type here** ),entityName(~“myserver~”)”

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [April 1, 2022, 10:26am UTC](https://community.dynatrace.com/t/v2-api-filter-transformation-wildcard-search/34118/3 "2022-04-01T10:26:01Z")

</div>

Hi Lou,

just to add some more info on top of&nbsp;[@dajunki](https://community.dynatrace.com/user/44458)&nbsp;s reponse.

I believe the filter function you would be looking for would be entityName.in, please find more information to all available selector functions [here](https://www.dynatrace.com/support/help/shortlink/api-entities-v2-selector#one-of-values-modification)

An example of such a filter could look like this:

```markup
filter(and(or(in("dt.entity.host",entitySelector("type(host),entityName.in(~"host01",~"host02~")")))))

```

Best,

Mark
