# What is the proper syntax to use for this search please?

**URL:** <https://discuss.elastic.co/t/what-is-the-proper-syntax-to-use-for-this-search-please/155312>\
**Category:** Kibana\
**Created:** [November 4, 2018, 6:58pm UTC](https://discuss.elastic.co/t/what-is-the-proper-syntax-to-use-for-this-search-please/155312 "2018-11-04T18:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wanderer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanderer/32/55140_2.png) [@Wanderer](https://discuss.elastic.co/u/Wanderer)\
**Post date:** [November 4, 2018, 6:58pm UTC](https://discuss.elastic.co/t/what-is-the-proper-syntax-to-use-for-this-search-please/155312/1 "2018-11-04T18:58:40Z")

</div>

I've tried surrounding the text below with and "" but just get errors of:

- Discover: Expected ":", "\<", "\<=", "\>", "\>=", "and", "or", [\ \t\r\n] or end of input but "d" found.
- Discover: Expected "\*", "", [\ \t\r\n] or end of input but """ found.

search string:  
echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 5, 2018, 2:07am UTC](https://discuss.elastic.co/t/what-is-the-proper-syntax-to-use-for-this-search-please/155312/2 "2018-11-05T02:07:56Z")

</div>

I think the problem is the single `"` in your example line. Try removing that or escaping it.

The search bar uses [lucene query syntax](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/query-dsl-query-string-query.html#query-string-syntax).

---

<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:** [December 3, 2018, 2:07am UTC](https://discuss.elastic.co/t/what-is-the-proper-syntax-to-use-for-this-search-please/155312/3 "2018-12-03T02:07:58Z")

</div>

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