# Regular expressions in kibana filters

**URL:** <https://discuss.elastic.co/t/regular-expressions-in-kibana-filters/337548>\
**Category:** Kibana\
**Created:** [July 4, 2023, 10:27am UTC](https://discuss.elastic.co/t/regular-expressions-in-kibana-filters/337548 "2023-07-04T10:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SajjanKumarPatea](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@SajjanKumarPatea](https://discuss.elastic.co/u/SajjanKumarPatea)\
**Post date:** [July 4, 2023, 10:27am UTC](https://discuss.elastic.co/t/regular-expressions-in-kibana-filters/337548/1 "2023-07-04T10:27:08Z")

</div>

Can you tell me how to filter messages in indexes correctly?  
I am filtering messages by a specific field.  
And I want to see messages only with this value in the field: id-nmap100-tapic-prod  
But I also get messages with this value: id-nmap100-tapic-prod-yd (but I don't need)

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [July 5, 2023, 6:11am UTC](https://discuss.elastic.co/t/regular-expressions-in-kibana-filters/337548/2 "2023-07-05T06:11:55Z")

</div>

Hey! How are you trying to filter your data? Using in the search bar in the top of Discover? Something like that? [[Filters] Add support for creating regex filters · Issue #121750 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/121750)

It is not possible to create filters with regexes but you can use the Edit as query DSL option and create a filter like this [[Filters] Add support for creating regex filters · Issue #121750 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/121750#issuecomment-1049987665)

---

<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:** [August 2, 2023, 6:12am UTC](https://discuss.elastic.co/t/regular-expressions-in-kibana-filters/337548/3 "2023-08-02T06:12:34Z")

</div>

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