# Unable to query ES

**URL:** <https://discuss.elastic.co/t/unable-to-query-es/80325>\
**Category:** Logstash\
**Created:** [March 28, 2017, 4:24pm UTC](https://discuss.elastic.co/t/unable-to-query-es/80325 "2017-03-28T16:24:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![E.Eric](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@E.Eric](https://discuss.elastic.co/u/E.Eric)\
**Post date:** [March 28, 2017, 4:24pm UTC](https://discuss.elastic.co/t/unable-to-query-es/80325/1 "2017-03-28T16:24:17Z")

</div>

Hi,

here my config: `elasticsearch {

```
 hosts => "localhost:9200"
 index=>"servers"	 
 query => '{
		  "query": {"match": {
			"server_id": "584"
		  }}
		}'

```

}`

It generates this error:

,"reason":"Cannot parse  
'{\n\t\t\t "query": {"match": {\n\t\t\t\t"server\_id": "584"\n\t\t\t }}\n\t\t\t}': Encountered " \<RANGE\_GOOP\> "{\"match\": "" at line 1,  
column 16.\nWas expecting one of:\n "]" ...\n "}" ...\n ","caused\_by":{"type":"parse\_exception","reason":"Encountered " \<RANGE\_GOOP\> "{\"match\": "" at line 1,  
column 16.\nWas expecting one of:\n "]" ...\n "}" ...\n "}}}}]},"status":400}\>, :level=\>:warn}

Thanks for help !

---

<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:** [April 25, 2017, 4:24pm UTC](https://discuss.elastic.co/t/unable-to-query-es/80325/2 "2017-04-25T16:24:38Z")

</div>

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