Skip to content

Instantly share code, notes, and snippets.

@xemoe
Last active January 18, 2017 10:34
Show Gist options
  • Save xemoe/4ead3ea85817920581b3 to your computer and use it in GitHub Desktop.
Save xemoe/4ead3ea85817920581b3 to your computer and use it in GitHub Desktop.
Logstash development

Preconfigure ** Important ***

  1. Install rvm https://rvm.io/

  2. Install jruby

    rvm install jruby
  3. use jruby

    rvm jruby

Logstash build

  1. clone project from https://github.com/elastic/logstash.git

  2. bootstrap the environment

    rake bootstrap
  3. install logstash core modules

    rake test:install-core
  4. run the logstash core tests you can use the rake task

    rake test:core
  5. Install set of plugins

    rake test:install-all

Develop logstash plugin

  1. Clone an example plugin input plugin, filter plugin, codec plugin, output plugin

  2. Write your own plugin

  3. 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