How much is a lot of time in this case? And what is your cron schedule?
Logstash can take a couple of time to start, this is expected, if this is an issue you should try to run logstash as a service and change your pipeline to read from files.
What version are you using and what is the server specs?
A start up time of 5 minutes is too long, but it could happen in some versions depending on the specs, there is an old issue about it related to jruby and the entropy of the system, but I did not experience this behavior in new versions.
But 1 hour and 30 minutes does not make much sense.
How are you measuring this time? Can you share logstash logs when it starts?
No the start up of logstash take 5 seconds only, 5 minutes if for the script with 600000 new entries.
I monitor the cron time easily I check the start and when the entries are in Elasticsearch... So 1h30 is approximate but significantly more than 5 minutes with the run in console.
Maybe losgstah is depriorize by cron, I have no idea
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.