Logstash elasticsearch input


#1

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.


(Magnus B├Ąck) #2

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


(system) #3

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