# Logstash plugin installed but not found

**URL:** <https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369>\
**Category:** Logstash\
**Created:** [June 25, 2015, 7:24pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369 "2015-06-25T19:24:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![whyapenny](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@whyapenny](https://discuss.elastic.co/u/whyapenny)\
**Post date:** [June 25, 2015, 7:24pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/1 "2015-06-25T19:24:47Z")

</div>

I have installed a logstash plugin logstash-input-jms. I build the .gem file and used the bin/plugin install command. It shows it installed successfully, yet when i run bin/plugin list, it is not listed. I tried with both 1.5.0 and the latest 1.5.1

I have searched extensively but documentation here is limited for both this plugin and this issue.

---

<div class="post-metadata">

**Author:** ![elgreco](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@elgreco](https://discuss.elastic.co/u/elgreco)\
**Post date:** [June 26, 2015, 7:45pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/2 "2015-06-26T19:45:50Z")

</div>

I am facing the similar issue with the example which is given in the input plugin page.  
([https://www.elastic.co/guide/en/logstash/current/\_how\_to\_write\_a\_logstash\_input\_plugin.html](https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_input_plugin.html))

The only renamed the plugin's name from example to example2, even in the gemspec etc. I am trying to figure how set the namespace, which is expected in line#131 of plugin.rb of logstash-1.5.1/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.1-java/lib/logstash

**When I debug it I get the following error message** :  
bin/logstash --debug -e 'input { example2{} } output {stdout { codec =\> rubydebug }}'  
Compiled pipeline code:  
@inputs = []  
@filters = []  
@outputs = []  
@periodic\_flushers = []  
@shutdown\_flushers = []

```
      @input_example2_1 = plugin("input", "example2")

      @inputs << @input_example2_1

      @output_stdout_2 = plugin("output", "stdout", LogStash::Util.hash_merge_many({ "codec" => ("rubydebug") }))

      @outputs << @output_stdout_2

```

def filter\_func(event)  
events = [event]  
@logger.debug? && @logger.debug("filter received", :event =\> event.to\_hash)  
events  
end  
def output\_func(event)  
@logger.debug? && @logger.debug("output received", :event =\> event.to\_hash)  
@output\_stdout\_2.handle(event)

end {:level=\>:debug, :file=\>"logstash/pipeline.rb", :line=\>"28", :method=\>"initialize"}  
Plugin not defined in namespace, checking for plugin file {:type=\>"input", :name=\>"example2", :path=\>"logstash/inputs/example2", :level=\>:debug, :file=\>"logstash/plugin.rb", :line=\>"133", :method=\>"lookup"}  
The error reported is:  
Couldn't find any input plugin named 'example2'. Are you sure this is correct? Trying to load the example2 input plugin resulted in this error: no such file to load -- logstash/inputs/example2

---

<div class="post-metadata">

**Author:** ![elgreco](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@elgreco](https://discuss.elastic.co/u/elgreco)\
**Post date:** [June 26, 2015, 11:08pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/4 "2015-06-26T23:08:07Z")

</div>

try the following format:  
|-- lib  
| -- logstash  
| -----inputs  
| ------- example2.rb  
|-- logstash-input-example2-0.1.0.gem  
|-- logstash-input-example2.gemspec  
|-- spec  
|----- logstash  
|--------- inputs  
|------------- example2.rb

Fix the gemspec also.

---

<div class="post-metadata">

**Author:** ![fh8510](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@fh8510](https://discuss.elastic.co/u/fh8510)\
**Post date:** [June 29, 2015, 4:27pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/5 "2015-06-29T16:27:07Z")

</div>

I had the same issue. I created a plugin and installed it with 'bin/plugin install --no-verify .gem', but it wouldn't show up when doing 'plugin list'.  
My problem was I did not include the .gemspec file in the Gem::Specification, s.files array.  
This GitHub issue below tipped me to the problem.  
Installing empty plugins #3444

> <https://github.com/elastic/logstash/issues/3444>

---

<div class="post-metadata">

**Author:** ![whyapenny](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@whyapenny](https://discuss.elastic.co/u/whyapenny)\
**Post date:** [June 29, 2015, 5:02pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/6 "2015-06-29T17:02:29Z")

</div>

> [@elgreco](#):
>
> try the following format:|-- lib| -- logstash| -----inputs| ------- example2.rb|-- logstash-input-example2-0.1.0.gem|-- logstash-input-example2.gemspec|-- spec|----- logstash|--------- inputs|------------- example2.rb

ElGreco, I checked those and the format was correct except under |--spec i have:  
|--spec  
|----inputs  
|------jms\_spec.rb  
Note no logstash subdir under spec, and .rb file has \_spec instead of simply jms.rb

> [@fh8510](#):
>
> My problem was I did not include the .gemspec file in the Gem::Specification, s.files array.

I am attempting to install a plugin from github, not one i wrote. Which file should i check for this in?

---

<div class="post-metadata">

**Author:** ![hasuji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hasuji/32/3507_2.png) [@hasuji](https://discuss.elastic.co/u/hasuji)\
**Post date:** [June 29, 2015, 9:30pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/7 "2015-06-29T21:30:59Z")

</div>

Similar to @whyapenny, I have installed a custom logstash output plugin. I build the .gem and specified the new plugin .gem path in the Gemfile and then tried **bin/plugin install --no-verify**. It shows it installed successfully, yet when i run **bin/plugin list** , it is not listed. I tried with both 1.5.0 and the latest 1.5.1. I have seen similar issues posted but the suggested solution is not working. When I run with debug on, it explicitly says development group plugins were not included. What do I have to do to get a development group plugin installed properly?

---

<div class="post-metadata">

**Author:** ![kyunam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kyunam/32/3576_2.png) [@kyunam](https://discuss.elastic.co/u/kyunam)\
**Post date:** [August 14, 2015, 1:08am UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/8 "2015-08-14T01:08:33Z")

</div>

Found solution?  
I'm having the same issue today. I'm using logstash-1.5.0 and used the latest log stash-filter-example from GitHub today.

---

<div class="post-metadata">

**Author:** ![rishi](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rishi](https://discuss.elastic.co/u/rishi)\
**Post date:** [August 14, 2015, 1:26pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/9 "2015-08-14T13:26:23Z")

</div>

I had a similar issue as well, where `bin/plugin list` did not show my plugin. But, when I start logstash with my output plugin included in the config, it works just fine.

---

<div class="post-metadata">

**Author:** ![Sven\_Beauprez](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sven\_Beauprez](https://discuss.elastic.co/u/Sven_Beauprez)\
**Post date:** [August 14, 2015, 1:54pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/10 "2015-08-14T13:54:15Z")

</div>

Had similar problems this week where I was building 'empty' plugins. If it could be helpful, this is how I build plugins without messing up my machine:

Install docker if not done yet.

Build following `Dockerfile` (`docker build -t sbeaupre/jruby .`):

> FROM jruby:1.7

> RUN apt-get update   
> && apt-get install -y git   
> && gem install bundler   
> && bundle install

Then write your own plugin or clone a plugin from github (Do not just download a zip from github! For some reason, some/most plugins have dependencies on git during the build), eg:

```
git clone -b v1.0.7 https://github.com/logstash-plugins/logstash-output-elasticsearch.git

```

In the root plugin folder, execute following command:

```
docker run -it --rm --name build-it -v "$PWD":/usr/src -w /usr/src sbeaupre/jruby bundle install && gem build logstash-output-elasticsearch.gemspec

```

And you get the gem file in the root folder of the plugin.

Main disadvantage is that the `bundle install` takes some time, but it is a flexible setup.

I am also using docker to test different ELK configurations.

hth,

Sven

---

<div class="post-metadata">

**Author:** ![whyapenny](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@whyapenny](https://discuss.elastic.co/u/whyapenny)\
**Post date:** [August 14, 2015, 2:34pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/11 "2015-08-14T14:34:20Z")

</div>

I still have not had success with this. I have reverted back to logstash 1.4.2 and kibana 3.

---

<div class="post-metadata">

**Author:** ![hasuji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hasuji/32/3507_2.png) [@hasuji](https://discuss.elastic.co/u/hasuji)\
**Post date:** [August 18, 2015, 4:42am UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/12 "2015-08-18T04:42:33Z")

</div>

@fh8510 I added '\*.gemspec' to the s.files array:

s.files = Dir['lib/logstash/outputs/_.rb', 'spec/\*\*/_.rb', '\*.gemspec']

but the plugin is still not listed in the output of bin/plugin list even though it said it installed successfully.

---

<div class="post-metadata">

**Author:** ![ms84772](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@ms84772](https://discuss.elastic.co/u/ms84772)\
**Post date:** [May 27, 2016, 9:26pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/13 "2016-05-27T21:26:03Z")

</div>

Hi all, I have installed successfully the plugin, I can see the plug in listed but when I try to use it I get the following:

The error reported is:  
Couldn't find any filter plugin named 'rawstatistics\_cms'. Are you sure this is correct? Trying to load the rawstatistics\_cms filter plugin resulted in this error: no such file to load -- logstash/filters/rawstatistics\_cms

---

<div class="post-metadata">

**Author:** ![Kryten](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@Kryten](https://discuss.elastic.co/u/Kryten)\
**Post date:** [May 28, 2016, 12:00pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/14 "2016-05-28T12:00:11Z")

</div>

Yes. I have also experienced this issue, posted about it asking for help - even offered a bounty!

Nothing. Nadda. Zippo. Zilch.

The inability to develop, install and use my own plugins is destroying my commitment to Logstash. Before the new plugin manager it was a walk in the park ☹

---

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [August 19, 2016, 12:13pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/15 "2016-08-19T12:13:00Z")

</div>

Hi

Do we have any solution for this, i am facing this problem with file input plugin?

I am getting this error

`Plugin not defined in namespace, checking for plugin file`

Here is my config file, basically i am loading csv file in ES

```
input {  
      file {
	      sincedb_path => "E:/sincedbfile/sincedb_file1.txt"
          path => "E:/sincedbfile/abc.csv"
		  type=> "quality"
          start_position => "beginning"
      }
}

filter {  
    csv {
	    separator => ","
		columns => ["QualityEvent" , "EventNumber"]
    }
}

output {  
	stdout { codec => rubydebug }
    elasticsearch {
        action => "index"
        hosts => "127.0.0.1:9200"
        index => "abcde"
	

		
    }	
}
```

---

<div class="post-metadata">

**Author:** ![kravigupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kravigupta/32/14811_2.png) [@kravigupta](https://discuss.elastic.co/u/kravigupta)\
**Post date:** [February 9, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/16 "2017-02-09T13:46:35Z")

</div>

There is a variable in your plugin's main class with name - config\_name.

Make sure that this is not set to empty string and has a name same as your plugin.

In case your plugin is logstash-input-xyz then  
config\_name "xyz"

Hope this helps 🙂

---

<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:** [July 6, 2017, 4:28am UTC](https://discuss.elastic.co/t/logstash-plugin-installed-but-not-found/24369/17 "2017-07-06T04:28:44Z")

</div>


