# KQL query not part of the query

**URL:** <https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052>\
**Category:** Kibana\
**Created:** [September 1, 2020, 6:48am UTC](https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052 "2020-09-01T06:48:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias\_Eriksson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tobias_eriksson/32/61713_2.png) [@Tobias\_Eriksson](https://discuss.elastic.co/u/Tobias_Eriksson)\
**Post date:** [September 1, 2020, 6:48am UTC](https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052/1 "2020-09-01T06:48:45Z")

</div>

For some reason the query is not included in the query sent to Elastic  
However "+ Add Filter" part of the query IS included in the query  
I had a look at the "Inspect" and it is clearly so that what ever I type in is not in the query  
however those added with the "+ Add Filter" is....  
So like the screenshot shows, the trace\_token is working fine  
but the "message : timeout" is not

Any ideas of why ?

Someone had changed the default query language to Lucene and I changed it back to KQL  
Maybe there is more that I need to change back to make it work.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/adb55083f3dd6018dfddfe45a00f532b0d00550a.png)

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [September 10, 2020, 8:43pm UTC](https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052/2 "2020-09-10T20:43:51Z")

</div>

Did you apply the KQL query by hitting the return key in the input?

---

<div class="post-metadata">

**Author:** ![Tobias\_Eriksson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tobias_eriksson/32/61713_2.png) [@Tobias\_Eriksson](https://discuss.elastic.co/u/Tobias_Eriksson)\
**Post date:** [September 10, 2020, 8:47pm UTC](https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052/3 "2020-09-10T20:47:56Z")

</div>

I would say I did, but you make me weary 🙂 what if I just pressed the query button...  
I am pretty sure I did hit return cause I was fighting this problem for a long time...  
Interesting is that now a couple of days later it works just fine  
I am not sure what changed, there are alot of people in this environment so who knows, or if I did like you said, that would be embarrassing....

---

<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:** [October 8, 2020, 8:47pm UTC](https://discuss.elastic.co/t/kql-query-not-part-of-the-query/247052/4 "2020-10-08T20:47:59Z")

</div>

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