-
Install rvm https://rvm.io/
-
Install jruby
rvm install jruby
-
use jruby
rvm jruby
-
clone project from
https://github.com/elastic/logstash.git
-
bootstrap the environment
rake bootstrap
-
install logstash core modules
rake test:install-core
-
run the logstash core tests you can use the rake task
rake test:core
-
Install set of plugins
rake test:install-all
-
Clone an example plugin input plugin, filter plugin, codec plugin, output plugin
-
Write your own plugin
-
Build and tests your plugin
build your plugin gem
gem build logstash-filter-awesome.gemspec
Install the plugin from the Logstash home
bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
Start Logstash and proceed to test the plugin
Example