Closed robgil closed 7 years ago
Good night, thanks a lot for your report.
Would it be nice to know a bit more about your system to be able to reproduce it, is actually interesting you got the mongo-2.0.6.gem
, but not the mongo output.
Can you let me know more about your env?
Thanks a lot.
Good afternoon, just tried your same flow with:
A few important things,
bin/plugin list
show its (for example the mongodb output). It gets properly added to the package file.logstash-output-mongodb-2.0.3.gem
for this example), the installation is going to fail due to missing plugin.I wonder if you can verify this for your installation, would really need more details to reproduce your issue. Keep in mind one things, the machine that build the package of plugins have to have internet, otherwise this process does not work, is this your source of issue?
So when you run "./plugin pack", do all the dependencies get in to the tarball thats created?
Try this
Next, on the offline box, copy the plugin pack tar.gz file over and install the pack. "./plugin unpack
I'm also using java 8, centos6 (selinux disabled), and LS 2.1.1-1
Available Packages
Name : logstash
Arch : noarch
Epoch : 1
Version : 2.1.1
Release : 1
Size : 71 M
Repo : logstash-2.1
Summary : An extensible logging pipeline
URL : http://www.elasticsearch.org/overview/logstash/
License : ASL 2.0
Description : An extensible logging pipeline
There were some errors with the webhdfs dependency specifically to jruby. The webhdfs maintainer released version 8.0.0 which should include fixes for logstash.
I am seeing identical behavior. I can successfully install logstash-input-mongodb plugin, see it is installed with ./plugin list
, and use it. But when I do a ./plugin pack
, logstash-input-mongodb is not included in the contents of plugins_package.tar.gz.
Has there been any resolution or workarounds for this issue? I need a way of installing the logstash-input-mongodb plugin onto an offline machine.
I am running logstash 2.2.2, java 1.7.0_79, OSX 10.10.3.
after reading this issue I believe the problem is the following, I cannot confirm it completely since I am missing some info.
The missing gems mongodb was installed with this command bin/logstash-plugin install logstash-input-monodb***.gem
, in the pack workflow theses locally installed plugins where not included in the generated back since the *.gem where not in the cache folder.
The new offline flow from https://github.com/elastic/logstash/pull/6404 which will be bundled in 5.2.0 is taken care of that problem.
I will close this issue, if this ever come up again in 5.2.0 fee free to open a new issue.
logstash 2.1.1-1 centos6
When creating a pack, some plugins are not included. The ones I have found to be missing are logstash-output-webhdfs and logstash-output-mongo. These both have java in common.
List of plugins from host that was used to create the pack
The plugins on this host were installed via the typical ./plugin install
List of gems from pack file in /opt/logstash/vendor/cache/ after unpack
I'm not sure if this is just a plugin problem, or a pack problem. Two plugins that we use are experiencing this, and seem to install fine in traditional ways (./plugin install)
Tarball pack
This might be related when packing plugins. #3735