# KQL regex query

**URL:** <https://discuss.elastic.co/t/kql-regex-query/221943>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [March 3, 2020, 8:08pm UTC](https://discuss.elastic.co/t/kql-regex-query/221943 "2020-03-03T20:08:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsdevaraja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hsdevaraja/32/81564_2.png) [@hsdevaraja](https://discuss.elastic.co/u/hsdevaraja)\
**Post date:** [March 3, 2020, 8:08pm UTC](https://discuss.elastic.co/t/kql-regex-query/221943/1 "2020-03-03T20:08:01Z")

</div>

Hi,  
I have Elasticsearch and Kibana setup with 7.5 version installed.I am trying the logs query where I have log filenames  
/websites/app-name1/202001.txt  
/websites/app-name1/202002.txt,  
/websites/app-name1/202003.txt etc...

I want to run the logs query(KQL) which is starting with filenames 2020 so that it should list all the logs mentioned above in the query results.Please let me know the query to achieve the same.

Thanks  
Devaraj

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 4, 2020, 10:17am UTC](https://discuss.elastic.co/t/kql-regex-query/221943/2 "2020-03-04T10:17:22Z")

</div>

You should be able to do this with a wildcard search: `myField: *thingIWantToMatch*`

---

<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:** [April 1, 2020, 10:17am UTC](https://discuss.elastic.co/t/kql-regex-query/221943/3 "2020-04-01T10:17:22Z")

</div>

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