# Logstash elasticsearch input

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-input/85276>\
**Category:** Logstash\
**Created:** [May 10, 2017, 3:10pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input/85276 "2017-05-10T15:10:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 10, 2017, 3:10pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input/85276/1 "2017-05-10T15:10:28Z")

</div>

I am trying to use logstash to copy an elasticsearch input to an elasticsearch output. The documentation tells me I can use query =\> "\*".

Using logstash 5.4, with an ES 5.2 input I get "root\_cause":[{"type":"parse\_exception","reason":"Failed to derive xcontent"}], which I think is telling me the query results are empty.

With a 5.4 input I get {"root\_cause":[{"type":"json\_parse\_exception","reason":"Unexpected character ('\*' (code 42)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n

query =\> "{}" seems to work. The documentation for the logstash elasticsearch input appears to be wrong.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 12, 2017, 8:17am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input/85276/2 "2017-05-12T08:17:38Z")

</div>

Yes, that's a documentation bug. A correction has been proposed ([https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/31](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/31)) but currently can't be merged because of a missing CLA from the contributor.

---

<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:** [June 9, 2017, 8:21am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-input/85276/3 "2017-06-09T08:21:49Z")

</div>

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