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.