Example input plugin. This should help bootstrap your effort to write your own input plugin!
Change version in logstash-input-mongodb.gemspec
And build new gem:
$ gem build logstash-input-mongodb.gemspec
-
Install rvm https://rvm.io/
-
Install jruby
$ rvm install jruby 1.7.25
- Use jruby from rvm
$ rvm alias create default jruby-1.7.25
$ rvm use default
$ /bin/bash --login
$ gem install bundler
$ bundle install
- Run tests
- Unit
$ ruby test/*
- Rspec (but it needs mongo on localhost, it would be nice to have it is not depended on local mongo)
$ ./bin/rspec