I work with windows 10. When I try to run logstash it takes around 1 minute to launch. And I'm only trying to display the help message (-h). Do any of you knows what I'm doing wrong?
I tried with WSL (just un case) and I have the same behaviour.
I suspect a problem with entropy since adding:
-Djruby.compile.invokedynamic=false
-Djruby.compile.mode=OFF
-XX:+TieredCompilation
-XX:TieredStopAtLevel=1
-client
reduces the startup time to about 30 seconds. Which is better but still very long for doing nothing.
I don't think that you are doing anything wrong.
Logstash on everything I have it installed on takes about the same amount of time. This includes Windows and several variants of Linux.
I'm using logstash in a scripted way (logstash -f conf.conf) to load the content of a csv file into elastic. I often make a little update to the script and/or the conf file and want to test it just after that. Having to wait 30s to 60s everytime is a real problem.
How to you work around that? Is there a way to run logstash a some kind of server that is always running and to send it the csv file through a pipe or something?
Yes, use two windows. In one run logstash with --config.reload.automatic, and in the other edit your configuration. Every time you update the configuration file logstash will restart the pipeline and re-read file inputs.
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.