Closed dichenli closed 7 years ago
Update: I just downgraded Logstash to 5.0.2 and the problem is gone. Is it a bug introduced by 5.1.1?
Hm at first glance I thought this had to be related to the brokenness the core team found yesterday in https://github.com/elastic/logstash/issues/6374
But actually based on your workaround it looks like a logic error in this PR https://github.com/logstash-plugins/logstash-input-kinesis/pull/15
@hippolin how did you determine which version number of LOGSTASH_CORE_PLUGIN_API to use as the cutover? Does changing to >=
look correct to you there?
Thanks. I just launched a new instance with Logstash-5.0.2 installed. It uses logstash-core-plugin-api 2.1.16 now. So it seems somehow the newer versioned logstash (5.1.1) is using an older version of logstash-core-plugin-api (2.1.12).
I have this issue as well
Thanks @hippolin for the fix, I've just pushed version 2.0.3 of this gem
Thanks for the fix!
I'm having problem launching Logstash 5.1.1 with this plugin.
Error log in /var/log/logstash/logstash-plain.log:
In kinesis.rb lines 60-66, it decides which log class to use based on logstash-core-plugin version. See: https://github.com/logstash-plugins/logstash-input-kinesis/blob/master/lib/logstash/inputs/kinesis.rb
I find my logstash-core-plugin version is exactly 2.1.12. So I manually changed the line 60 from
if Gem::Version.new(LOGSTASH_CORE_PLUGIN_API) > Gem::Version.new('2.1.12')
toif Gem::Version.new(LOGSTASH_CORE_PLUGIN_API) >= Gem::Version.new('2.1.12')
And the problem was solved for this EC2 instance.
Since I use AWS CloudFormation to deploy Logstash, it's very hard to manually update this file every time I deploy the stack. Could you help me find and fix the problem? Thank you!