I am developing a custom plugin and the "build, test, fix" cycle is very slow.
I have to:
- Write the code.
- Build the gem
- Install the gem
- Run logstash (which takes quite a while to startup)
Is there a way to speed up this process?
I am developing a custom plugin and the "build, test, fix" cycle is very slow.
I have to:
Is there a way to speed up this process?
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.
Jake, this is great, exactly what I was looking for.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.