# KV filter plugin install

**URL:** <https://discuss.elastic.co/t/kv-filter-plugin-install/195952>\
**Category:** Logstash\
**Created:** [August 20, 2019, 1:57pm UTC](https://discuss.elastic.co/t/kv-filter-plugin-install/195952 "2019-08-20T13:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcrocker](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dcrocker](https://discuss.elastic.co/u/dcrocker)\
**Post date:** [August 20, 2019, 1:57pm UTC](https://discuss.elastic.co/t/kv-filter-plugin-install/195952/1 "2019-08-20T13:57:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2019, 1:57pm UTC](https://discuss.elastic.co/t/kv-filter-plugin-install/195952/2 "2019-09-17T13:57:43Z")

</div>

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