# Logstash can not find plugin after i install it successfully

**URL:** <https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595>\
**Category:** Logstash\
**Created:** [August 18, 2017, 1:45pm UTC](https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595 "2017-08-18T13:45:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiangxiongZhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liangxiongzhu/32/21249_2.png) [@LiangxiongZhu](https://discuss.elastic.co/u/LiangxiongZhu)\
**Post date:** [August 18, 2017, 1:45pm UTC](https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595/1 "2017-08-18T13:45:55Z")

</div>

i would like to extend logstash-input-jdbc so i download it to my local directory. and then i do following things.

1. rename the directory from logstash-input-jdbc to logstash-input-ias\_person

2. rename lib/logstash/inputs/jdbc.ruby to lib/logstash/inputs/ias\_person.ruby

3. rename class name from Jdbc to Ias\_Person

4. change config\_name to "ias\_person"

5. change logstash-input-jdbc.gemspec to logstash-input-ias\_person.gemspec

6. gem build logstash-input-ias\_person.gemspec then i get a logstash-input-ias\_person-4.2.2.gem

7. install this new plugin (yes, i just rename it for the first step) by command logstash-plugin install logstash-input-ias\_person-4.2.2.gem. it shows validating, and installing and then succeed.

8. run command logstash-plugin list, i can see my logstash-input-ias\_person in output.

9. open logstash/Gemfile, i see this line: gem "logstash-input-ias\_person", "4.2.2", :path =\> "vendor/local\_gems/89ca0712/logstash-input-ias\_person-4.2.2"

10. so far so good! BUT when i try to use it. (just by replace jdbc plugin to ias\_person in a verified working logstash conf file). i get this error:  
[2017-08-18T15:26:16,713][ERROR][logstash.plugins.registry] Problems loading a plugin with {:type=\>"input", :name=\>"ias\_person", :path=\>"logstash/inputs/ias\_person", :error\_message=\>"NameError", :error\_class=\>NameError, :error\_backtrace=\>["c:/ElastiscSearch/logstash/logstash-core/lib/logstash/plugins/registry.rb:226:in `namespace_lookup'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/plugins/registry.rb:162:in`legacy\_lookup'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/plugins/registry.rb:138:in `lookup'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/plugins/registry.rb:180:in`lookup\_pipeline\_plugin'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/plugin.rb:140:in `lookup'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/pipeline.rb:100:in`plugin'", "(eval):8:in `initialize'", "org/jruby/RubyKernel.java:1079:in`eval'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/pipeline.rb:72:in `initialize'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/pipeline.rb:156:in`initialize'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/agent.rb:286:in `create_pipeline'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/agent.rb:95:in`register\_pipeline'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/runner.rb:314:in `execute'", "c:/ElastiscSearch/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in`run'", "c:/ElastiscSearch/logstash/logstash-core/lib/logstash/runner.rb:209:in `run'", "c:/ElastiscSearch/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in`run'", "c:\ElastiscSearch\logstash\lib\bootstrap\environment.rb:71:in `(root)'"]}  
[2017-08-18T15:26:16,729][ERROR][logstash.agent] Cannot create pipeline {:reason=\>"Couldn't find any input plugin named 'ias\_person'. Are you sure this is correct? Trying to load the ias\_person input plugin resulted in this error: Problems loading the requested plugin named ias\_person of type input. Error: NameError NameError"}

I GUESS, it trys to load plugin from "logstash/inputs/ias\_person"???  
Doesn't logstash/Gemfile shows it is at "vendor/local\_gems/89ca0712/logstash-input-ias\_person-4.2.2"??

---

<div class="post-metadata">

**Author:** ![LiangxiongZhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liangxiongzhu/32/21249_2.png) [@LiangxiongZhu](https://discuss.elastic.co/u/LiangxiongZhu)\
**Post date:** [August 18, 2017, 2:03pm UTC](https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595/2 "2017-08-18T14:03:04Z")

</div>

plus:  
get error after i uninstall it and try to install it again...

c:\ElastiscSearch\logstash\>bin\logstash-plugin install plugins\logstash-input-ias\_person-4.2.2.gem  
ERROR: Something went wrong when installing plugins\logstash-input-ias\_person-4.2.2.gem, message: bad URI(is not URI?): [https://artifacts.elastic.co/downloads/logstash-plugins/plugins\logstash-input-ias\_person-4.2.2.gem/plugins\logstash-input-ias\_person-4.2.2.gem-5.5.1.zip](https://artifacts.elastic.co/downloads/logstash-plugins/plugins%5Clogstash-input-ias_person-4.2.2.gem/plugins%5Clogstash-input-ias_person-4.2.2.gem-5.5.1.zip)

---

<div class="post-metadata">

**Author:** ![LiangxiongZhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liangxiongzhu/32/21249_2.png) [@LiangxiongZhu](https://discuss.elastic.co/u/LiangxiongZhu)\
**Post date:** [August 18, 2017, 2:13pm UTC](https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595/3 "2017-08-18T14:13:49Z")

</div>

for my first problem: it is my mistake. i made some changes and installed gem. then continue make other changes.and rebuild and reinstall the gem. but i didn't copy the new gem from source directory to my installation directory. so logstash still loads old gem which has something incosistent by itself.

for my second problem: i am still unsure what is happening. after tried about 7 or 8 times. i can install it now. i did nothing but just repeat executing bin\logstash-plugin install plugins\logstash-input-ias\_person-4.2.2.gem. hopefully some experienced plugin developer could tell me what is happening in my computer.

---

<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 15, 2017, 2:25pm UTC](https://discuss.elastic.co/t/logstash-can-not-find-plugin-after-i-install-it-successfully/97595/4 "2017-09-15T14:25:13Z")

</div>

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