# Query string not returning what is expected

**URL:** https://discuss.elastic.co/t/query-string-not-returning-what-is-expected/142801
**Category:** Kibana
**Created:** [August 2, 2018, 7:30pm UTC](https://discuss.elastic.co/t/query-string-not-returning-what-is-expected/142801 "2018-08-02T19:30:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cchooks2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cchooks2/32/21987_2.png) [@cchooks2](https://discuss.elastic.co/u/cchooks2)
#### Post date: [August 2, 2018, 7:30pm UTC](https://discuss.elastic.co/t/query-string-not-returning-what-is-expected/142801/1 "2018-08-02T19:30:29Z")

</div>

Hello,

I have the following set of data coming into Kibana:

Snippet:

"atc.syncer.ecc-hello-world-perf\_test\_team\_qa-13-0:scheduler.tick.scheduling. **try-start-next-pending-build.scan**.failed-to-evaluate-resource-source"

"message":"atc.syncer.ruby-buildpack-health:scheduler.tick.scheduling.try-start-next-pending-build.finished"

My query i am using is : try-start-next-pending-build.scan

I am trying to only match on the first message and only the query, but that is not happening. It's also matching other messages that contain start-next-pending

It is only highlighting "start-next-pending", but not the full query in the search.

Can someone help explain why this is happening and what query i should use to return only what i want: try-start-next-pending-build.scan

Thanks

---

<div class="post-metadata">

### Author: ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)
#### Post date: [August 3, 2018, 7:45am UTC](https://discuss.elastic.co/t/query-string-not-returning-what-is-expected/142801/2 "2018-08-03T07:45:26Z")

</div>

Try query`_exists_`

---

<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: [August 31, 2018, 7:45am UTC](https://discuss.elastic.co/t/query-string-not-returning-what-is-expected/142801/3 "2018-08-31T07:45:27Z")

</div>

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