Trying to install the logstash-output-email plugin, but not working.
Can I get a lil help with trying to figure out what's up?
[root@logstash logstash]# bin/logstash-plugin install logstash-output-email
Validating logstash-output-email
Installing logstash-output-email
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "mail":
In snapshot (Gemfile.lock):
mail (= 2.6.4)
In Gemfile:
logstash-input-imap (>= 0) java depends on
mail (~> 2.6.3) java
logstash-output-email (>= 0) java depends on
mail (= 2.6.3) java
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
In snapshot (Gemfile.lock):
logstash-core (= 5.0.0.pre.alpha4)
In Gemfile:
logstash-core-plugin-api (>= 0) java depends on
logstash-core (= 5.0.0.pre.alpha4) java
logstash-output-email (>= 0) java depends on
logstash-core (< 2.0.0, >= 1.4.0) java
logstash-core (>= 0) java
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash":
In Gemfile:
logstash-output-email (>= 0) java depends on
logstash (< 2.0.0, >= 1.4.0) java
Could not find gem 'logstash (< 2.0.0, >= 1.4.0) java', which is required by gem 'logstash-output-email (>= 0) java', in any of the sources.
[root@logstash logstash]#
java version
[root@logstash logstash]# java -version
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b13)
OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
[root@logstash logstash]#
I've got elasticsearch, logstash and kibana installed, all the 5.0 alpha4 version.
[root@logstash bin]# ./logstash-plugin install --no-verify logstash-output-email
Installing logstash-output-email
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "mail":
In snapshot (Gemfile.lock):
mail (= 2.6.4)
In Gemfile:
logstash-input-imap (>= 0) java depends on
mail (~> 2.6.3) java
logstash-output-email (>= 0) java depends on
mail (= 2.6.3) java
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
In snapshot (Gemfile.lock):
logstash-core (= 5.0.0.pre.alpha4)
In Gemfile:
logstash-core-plugin-api (>= 0) java depends on
logstash-core (= 5.0.0.pre.alpha4) java
logstash-output-email (>= 0) java depends on
logstash-core (< 2.0.0, >= 1.4.0) java
logstash-core (>= 0) java
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash":
In Gemfile:
logstash-output-email (>= 0) java depends on
logstash (< 2.0.0, >= 1.4.0) java
Could not find gem 'logstash (< 2.0.0, >= 1.4.0) java', which is required by gem 'logstash-output-email (>= 0) java', in any of the sources.
[root@logstash bin]#
The issue here is a bug with the logstash-output-email plugin which is not officially supported. There is also a bug with the documentation generator not mentioning that on the official documentation.
The issue is that the output-email plugin requires an older version of the mail gem. You can work around this by running:
bin/logstash-plugin install logstash-output-email should do the right thing. Alternatively you can upgrade with bin/logstash-plugin update logstash-output-email.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.