Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install logstash-output-amazon-es plugin in Windows #136

Open
shashankshekhar92 opened this issue Nov 20, 2019 · 2 comments
Open

Comments

@shashankshekhar92
Copy link

I am trying to install logstash-output-amazon-es plugin in Windows using power shell and I am getting the following error

PS C:\logstash-7.4.2> bin/logstash-plugin install logstash-output-amazon_es -v 6.4.0
Validating logstash-output-amazon_es
Found logstash-output-amazon_es (6.4.1), but was for platform x86_64-linux
Validating -v
Plugin -v does not exist
ERROR: Installation aborted, verification failed for -v

@treddeni-amazon
Copy link

You need to put the options before the plugin name in the command and the option is --version

This should work for you:
bin/logstash-plugin install --version 6.4.0 logstash-output-amazon_es

Usage:
bin/logstash-plugin install [OPTIONS] [PLUGIN] ...

Parameters:
[PLUGIN] ... plugin name(s) or file

Options:
--version VERSION version of the plugin to install
--[no-]verify verify plugin validity before installation (default: true)
--preserve preserve current gem options (default: false)
--development install all development dependencies of currently installed plugins (default: false)
--local force local-only plugin installation. see bin/logstash-plugin package|unpack (default: false)
-h, --help print help

@marabesi
Copy link

Worked perfectly with @treddeni-amazon comment (I am using docker), in my case I had to:

    environment:
      LS_JAVA_OPTS: "-Xmx1g -Xms1g"
    env_file:
      - .env
    command: bash -c "logstash-plugin install --version 6.4.0 logstash-output-amazon_es && logstash -f /usr/share/logstash/pipeline/logstash.conf"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants