logstash
logstash copied to clipboard
Using a `file://` prefix should work for *.gem file
When trying to install a local *.gem it will fail if we use a file://
prefix.
MacBook-Pro-4:logstash-5.2.2 sarwar$ bin/logstash-plugin install file:///Users/sarwar/Downloads/logstash-filter-dissect-1.0.8.gem
ERROR: Invalid pack for: file:///Users/sarwar/Downloads/logstash-filter-dissect-1.0.8.gem, reason: Invalid format, the pack must be in zip format, message: Invalid format, the pack must be in zip form
Do any workarounds exist for this problem? (I've tried both file://
and file:///
schemes to no avail)
@andsel I noticed you are actively merging to the codebase so thought to bring this to your attention. I am facing the same issue where logstash is ignoring file path to my locally built filter gem file: Note: System: Windows 10 64 bit Logstash: v7.14.0-windows-x86_64
C:\Users\samiul\Documents\logstash-7.14.0-windows-x86_64\logstash-7.14.0>.\bin\logstash-plugin install file:///c:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/logstash-filter-test-1.2.5.gem
Using JAVA_HOME defined java: C:\Program Files\Amazon Corretto\jdk11.0.10_9
WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
WARNING: A maven settings file already exist at C:\Users\samiul/.m2/settings.xml, please review the content to make sure it includes your proxies configuration.
Local file: /c:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/logstash-filter-test-1.2.5.gem
Installing with strategy: LogStash::PluginManager::PackInstaller::Local
LogStash::PluginManager::InvalidPackError: Invalid format, the pack must be in zip format
execute at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/lib/pluginmanager/pack_installer/local.rb:39
execute at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/lib/pluginmanager/install.rb:47
run at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
execute at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
run at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
run at C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
<main> at C:\Users\samiul\Documents\logstash-7.14.0-windows-x86_64\logstash-7.14.0\lib\pluginmanager\main.rb:64
@samhaque you file is local so you need to pass --local
to the bin\logstash-plugin install
, try:
bin\logstash-plugin.bat install --local C:/Users/samiul/Documents/logstash-7.14.0-windows-x86_64/logstash-7.14.0/logstash-filter-test-1.2.5.gem
@andsel Hello! I've tried to add key --local
as you said, but unfortunately have no success, the error still the same.
I am using logstash 8.10.4
Hi @hollden please could you provide more details:
- which plugin are you installing (or let us know where we can grab it) ?
- which command line did you issue?
- full listing of the error