I'm trying to install the email plugin for logstash by using "logstash-plugin install logstash-output-email", however when I do it I get the following error:
Validating logstash-output-email
Installing logstash-output-email
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core (5.6.2), and Bundler cannot continue.
Make sure that gem install logstash-core -v '5.6.2'
succeeds before bundling.
WARNING: can not set Session#timeout=(0) no session context
After trying to install the plugin, my logstash won't start anymore and gives the error:
Bundler::GemNotFound: Could not find gem 'logstash-output-email (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.
verify_gemfile_dependencies_are_found! at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:328
each at org/jruby/RubyArray.java:1613
verify_gemfile_dependencies_are_found! at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:307
start at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:199
resolve at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:182
resolve at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:192
specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132
specs_for at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177
requested_specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166
requested_specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18
setup at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13
setup at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122
setup! at C:/Users/Admin/logstash-5.6.2/lib/bootstrap/bundler.rb:67
(root) at C:\Users\Admin\logstash-5.6.2\lib\bootstrap\environment.rb:u6708:
Even though this error message says that it can't find the gem in these sources, the files do contain the line gem "logstash-output-email". I'm really confused as to why I can't just install the plugin. Is there something I can do here to make sure the plugin get installed?
Thanks,
Andrew