# Filter for entry which begins wich specific term

**URL:** <https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247>\
**Category:** Kibana\
**Created:** [January 15, 2021, 9:37am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247 "2021-01-15T09:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grra](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@grra](https://discuss.elastic.co/u/grra)\
**Post date:** [January 15, 2021, 9:37am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247/1 "2021-01-15T09:37:53Z")

</div>

Hi,

I have a field `case`.  
The entries of that field are for example "test/dev/bla1", "test/smth/bla", "dev/smth/..." .

Is it possible in `Explore` Tab to query for the entries which begin with "test/..." or "dev/..." ?

I would like to split the Visualizations by those features (test / dev).

Thanks.

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [January 15, 2021, 9:55am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247/2 "2021-01-15T09:55:57Z")

</div>

Hi @grra,  
I am not sure what's 'Explore' Tab, can you show a screenshot?  
If it's discover or somewhere in visualization, you can query with something like this:  
`case:test or case:dev`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/b/aba2cc93b6fc634aaeebe4e5fcd2091737011ee1.png)

if you want to split a visualization by these features, use a filters aggregation in your visualization.

---

<div class="post-metadata">

**Author:** ![grra](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@grra](https://discuss.elastic.co/u/grra)\
**Post date:** [January 15, 2021, 10:06am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247/3 "2021-01-15T10:06:16Z")

</div>

Thanks for quick reply,

What i mean was `Discover` Tab, sorry.

In that way, the entries are filtered which have "text" oder "dev" in any place of the value.

Is it possible to get all `case` entries which **BEGIN** with **test/**?

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [January 15, 2021, 11:07am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247/4 "2021-01-15T11:07:09Z")

</div>

hey @grra, do you have 'case.keyword' field too? You need to make sure the field is searchable and aggregatable and then if it is, `case.keyword:test* or case.keyword:dev*` should work fine.

---

<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:** [February 12, 2021, 11:07am UTC](https://discuss.elastic.co/t/filter-for-entry-which-begins-wich-specific-term/261247/5 "2021-02-12T11:07:17Z")

</div>

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