无论我如何调整我的基本logstash配置,我都会收到此错误:
Error: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Failed to parse request body"}],"type":"illegal_argument_exception","reason":"Failed to parse request body","caused_by":{"type":"json_parse_exception","reason":"Unrecognized token '**************': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@6d67a6bb; line: 1, column: 30]"}},"status":400}
即使我知道结果中只有8个“点击”,它会一直反复输出8个结果,直到我终止logstash脚本,ES不断重启...起初,我认为这是我的查询,但即使没有任何查询,我仍然会收到相同的错误:
input {
elasticsearch {
hosts => ["***", "***", "*****"]
index => "index_name_here"
user => "****"
password => "******"
}
}
filter {
}
output {
stdout {
codec => json
}
}
另外,我正在运行Ubuntu 16.04
任何帮助将不胜感激。谢谢!
答案 0 :(得分:0)
这已被确定为错误。详情here。
并修复(暂时还未审核):https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/62