- To get started, you'll need JRuby with the Bundler gem installed.
rvm install jruby
jruby -S gem install bundler
-
Create a new plugin or clone and existing from the GitHub logstash-plugins organization. We also provide example plugins.
-
Install dependencies
bundle install
- Update your dependencies
bundle install
- Run tests
bundle exec rspec
You can build the gem and install it using:
- Build your plugin gem
gem build logstash-filter-wkt_repair.gemspec
- Install the plugin from the Logstash home
bin/logstash-plugin install /your/local/plugin/logstash-filter-wkt_repair.gem
- Start Logstash and proceed to using/testing the plugin
- To install the plugin from rubyGems
bin/logstash-plugin install logstash-filter-wkt_repair.gem
For walk through of developing Logstash filter plugin see https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_filter_plugin.html