Hi all,
Whene i start logstash CPU usage jump to 99%, 100% and the logstash status is running but realy not started and no logs written can someone please help me to resolve this issue ?
thank you.
Hi all,
Whene i start logstash CPU usage jump to 99%, 100% and the logstash status is running but realy not started and no logs written can someone please help me to resolve this issue ?
thank you.
Starting logstash is expensive, it can burn over a minute of CPU, so 100% usage at first is normal. Does the process id of logstash keep changing, indicating that it is restarting? If not, what does the hot threads API show?
Hi @Cheroufa
What version of logstash is used? and what is the hardware configuration that you are uploading the logstash?
Did you get to configure any pipeline?
best regards
Yes the pid keep changing, CPU usage is 99%,100% even after starting.
logstash version : 8.0.1
hardwear : 2CPU Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz Ram 4g
logstash don't start even with default config and CPU usage jump to 100%
OK, so logstash is failing to start and the service manager is constantly restarting it. You will need to read the logstash logs and see what error it is getting.
No logs are written.
What OS and service manager are you using? Where did you look for logs?
os : ubuntu
path logs : /var/log/logstash/logstash-plain.log
error :
[2022-09-29T01:11:30,583][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
at usr.share.logstash.lib.bootstrap.environment.(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]
You need to check stdout/stderr. Try sudo journalctl -u logstash.service
Finally, it's an error in the configuration of the logstash.yml file, logstash can't parse it and therefore can't start.
thanks @Badger for the usefull command.
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.