How to speed up plugin development cycle


(Zachary Kazanski) #1

I am developing a custom plugin and the "build, test, fix" cycle is very slow.

I have to:

  1. Write the code.
  2. Build the gem
  3. Install the gem
  4. Run logstash (which takes quite a while to startup)

Is there a way to speed up this process?


(Jake Landis) #2

Instead of building and install the gem for each iteration, you can point your Gemfile to the local directory as described here: https://github.com/logstash-plugins/logstash-input-beats/blob/master/README.md#21-run-in-a-local-logstash-clone

You can check your Gemfile.lock to ensure to it is pointed to your local directory.

Can't help much with speeding up the code writing or Logstash restart time ... but if you like REPL driven development, you can use Logstash's -i flag with irb or pry and instead of starting normally, it drop you into an interactive shell with all of Logstash's dependencies and load paths available.


(Zachary Kazanski) #3

Jake, this is great, exactly what I was looking for. :+1:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.