# Regular expression help

**URL:** <https://discuss.elastic.co/t/regular-expression-help/91033>\
**Category:** Kibana\
**Created:** [June 28, 2017, 12:33am UTC](https://discuss.elastic.co/t/regular-expression-help/91033 "2017-06-28T00:33:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kernel\_Panic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kernel_panic/32/12294_2.png) [@Kernel\_Panic](https://discuss.elastic.co/u/Kernel_Panic)\
**Post date:** [June 28, 2017, 12:33am UTC](https://discuss.elastic.co/t/regular-expression-help/91033/1 "2017-06-28T00:33:17Z")

</div>

Hi guys

I'm struggling with a regular expression in kibana and cannot make it work.  
I have this source: "/path\_to\_logs/logs/2017\_06\_28.logfile.log" that log file changes everyday starting with  
the current date as part of it's name , I want to make search for a pattern that include all those \*.logfile.log but cannot make it work.

Any help appreciated  
Thanks in advanced  
Regards

---

<div class="post-metadata">

**Author:** ![erion](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@erion](https://discuss.elastic.co/u/erion)\
**Post date:** [June 28, 2017, 10:09am UTC](https://discuss.elastic.co/t/regular-expression-help/91033/2 "2017-06-28T10:09:55Z")

</div>

Hi @Kernel_Panic

try this: `.*\/(logs)\/.*`  
or if you want match path\_to\_logs insert that in the parentesist.

---

<div class="post-metadata">

**Author:** ![Kernel\_Panic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kernel_panic/32/12294_2.png) [@Kernel\_Panic](https://discuss.elastic.co/u/Kernel_Panic)\
**Post date:** [June 28, 2017, 12:55pm UTC](https://discuss.elastic.co/t/regular-expression-help/91033/3 "2017-06-28T12:55:41Z")

</div>

Thanks, I'll try that.  
Regrads

---

<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:** [July 26, 2017, 12:55pm UTC](https://discuss.elastic.co/t/regular-expression-help/91033/4 "2017-07-26T12:55:58Z")

</div>

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