# Regexp in Timelion/Kibana query

**URL:** <https://discuss.elastic.co/t/regexp-in-timelion-kibana-query/72762>\
**Category:** Kibana\
**Created:** [January 25, 2017, 11:13am UTC](https://discuss.elastic.co/t/regexp-in-timelion-kibana-query/72762 "2017-01-25T11:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreadlocked](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dreadlocked](https://discuss.elastic.co/u/Dreadlocked)\
**Post date:** [January 25, 2017, 11:13am UTC](https://discuss.elastic.co/t/regexp-in-timelion-kibana-query/72762/1 "2017-01-25T11:13:27Z")

</div>

Hi, I need to find logs whit specific text inside the "message" field. For example, I need to do something like:

`.es(q='event_id=XXXX AND message:"/WORD1|WORD2|WORD3|WORD4/")`

I only find examples for doing thins like: message:"WORD\*" but that's not what I want.

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [January 25, 2017, 4:38pm UTC](https://discuss.elastic.co/t/regexp-in-timelion-kibana-query/72762/2 "2017-01-25T16:38:38Z")

</div>

It looks close, does your query work if you remove the double quotes and close the single quote?  
`.es(q='event_id=XXXX AND message:/WORD1|WORD2|WORD3|WORD4/')`

---

<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 22, 2017, 4:38pm UTC](https://discuss.elastic.co/t/regexp-in-timelion-kibana-query/72762/3 "2017-02-22T16:38:51Z")

</div>

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