{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/16","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/16/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/16/events","html_url":"https://github.com/logstash-plugins/logstash-input-kinesis/issues/16","id":194509177,"number":16,"title":"Cannot launch Logstash. Failed to coerce java.util.logging.Level to org.apache.log4j.Level","user":{"login":"dichenli","id":8771073,"avatar_url":"https://avatars.githubusercontent.com/u/8771073?v=3","gravatar_id":"","url":"https://api.github.com/users/dichenli","html_url":"https://github.com/dichenli","followers_url":"https://api.github.com/users/dichenli/followers","following_url":"https://api.github.com/users/dichenli/following{/other_user}","gists_url":"https://api.github.com/users/dichenli/gists{/gist_id}","starred_url":"https://api.github.com/users/dichenli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dichenli/subscriptions","organizations_url":"https://api.github.com/users/dichenli/orgs","repos_url":"https://api.github.com/users/dichenli/repos","events_url":"https://api.github.com/users/dichenli/events{/privacy}","received_events_url":"https://api.github.com/users/dichenli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T04:07:01Z","updated_at":"2016-12-09T04:26:37Z","closed_at":null,"body":"I'm having problem launching Logstash 5.1.1 with this plugin. \r\n\r\nError log in /var/log/logstash/logstash-plain.log:\r\n```\r\n[2016-12-09T03:54:10,776][ERROR][logstash.agent           ] Pipeline aborted due to error {:exception=>#<TypeError: failed to coerce java.util.logging.Level to org.apache.log4j.Level>, :backtrace=>[\r\n\"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kinesis-2.0.2-java/lib/logstash/inputs/kinesis.rb:64\r\n:in `register'\", \"/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:353\r\n:in `start_inputs'\", \"org/jruby/RubyArray.java:1613\r\n:in `each'\", \"/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:352\r\n:in `start_inputs'\", \"/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:228\r\n:in `start_workers'\", \"/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:183\r\n:in `run'\", \"/usr/share/logstash/logstash-core/lib/logstash/agent.rb:292\r\n:in `start_pipeline'\"]}\r\n```\r\n\r\nIn 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\r\n\r\nI find my logstash-core-plugin version is exactly 2.1.12. So I manually changed the line 60 from\r\n`if Gem::Version.new(LOGSTASH_CORE_PLUGIN_API) > Gem::Version.new('2.1.12')`\r\nto\r\n`if Gem::Version.new(LOGSTASH_CORE_PLUGIN_API) >= Gem::Version.new('2.1.12')`\r\n\r\nAnd the problem was solved for this EC2 instance.\r\n\r\nSince 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!"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/comments/265930779","html_url":"https://github.com/logstash-plugins/logstash-input-kinesis/issues/16#issuecomment-265930779","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-input-kinesis/issues/16","id":265930779,"user":{"login":"dichenli","id":8771073,"avatar_url":"https://avatars.githubusercontent.com/u/8771073?v=3","gravatar_id":"","url":"https://api.github.com/users/dichenli","html_url":"https://github.com/dichenli","followers_url":"https://api.github.com/users/dichenli/followers","following_url":"https://api.github.com/users/dichenli/following{/other_user}","gists_url":"https://api.github.com/users/dichenli/gists{/gist_id}","starred_url":"https://api.github.com/users/dichenli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dichenli/subscriptions","organizations_url":"https://api.github.com/users/dichenli/orgs","repos_url":"https://api.github.com/users/dichenli/repos","events_url":"https://api.github.com/users/dichenli/events{/privacy}","received_events_url":"https://api.github.com/users/dichenli/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T04:26:37Z","updated_at":"2016-12-09T04:26:37Z","body":"Update: I just downgraded Logstash to 5.0.2 and the problem is gone. Is it a bug introduced by 5.1.1?"}}
{"actor":{"display_login":"dichenli"}}