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.
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 = []
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
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
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
I am attempting to install a plugin from github, not one i wrote. Which file should i check for this in?
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?
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.
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 .):
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:
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
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.