KV filter plugin install

I am new to using logstash. I need to install the kv filter but having issues. I get an error when I try to run the following command:

gem 'logstash-filter-kv', '~> 4.4'

The error is:
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command logstash-filter-kv,

Thanks for any help

So I found another way to install a plugin using the logstash-plugin install. However when I execute the command I get the following error:
c:\logstash-7.3.0\bin>logstash-plugin install logstash-filter-kv

Cannot find Java 1.5 or higher.

But when i do a java version i get the following:
c:\logstash-7.3.0\bin>java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

Any ideas why it cannot find java?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.