# Using queries on Timelion

**URL:** <https://discuss.elastic.co/t/using-queries-on-timelion/145962>\
**Category:** Elasticsearch\
**Created:** [August 24, 2018, 6:21pm UTC](https://discuss.elastic.co/t/using-queries-on-timelion/145962 "2018-08-24T18:21:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Azulay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_azulay/32/34800_2.png) [@David\_Azulay](https://discuss.elastic.co/u/David_Azulay)\
**Post date:** [August 24, 2018, 6:21pm UTC](https://discuss.elastic.co/t/using-queries-on-timelion/145962/1 "2018-08-24T18:21:47Z")

</div>

Hi guys,  
Im trying to learn Timelion query syntax for analyzing some data.  
The lucene query I am having trouble with is:  
"Pushing message to Queue" AND "\<alertSource.\>6\</alertSource.\>\<alertCode.\>96\</alertCode.\>"  
I cannot use only one of the strings since each of them will return a different amount of logs, therefor it's essential it will remain exactly like that.  
I used the function:  
.es(q='"Pushing message to Queue" AND "\<alertSource.\>6\</alertSource.\>\<alertCode.\>96\</alertCode.\>"') but it makes an error.  
How do can I make this work?

---

<div class="post-metadata">

**Author:** ![mikebd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikebd/32/33437_2.png) [@mikebd](https://discuss.elastic.co/u/mikebd)\
**Post date:** [August 26, 2018, 2:50am UTC](https://discuss.elastic.co/t/using-queries-on-timelion/145962/2 "2018-08-26T02:50:56Z")

</div>

What is the error message? I tried to reproduce and got no error message.

---

<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:** [September 23, 2018, 2:51am UTC](https://discuss.elastic.co/t/using-queries-on-timelion/145962/3 "2018-09-23T02:51:01Z")

</div>

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