After instaling/configuring logstash, I get this error:
[2022-03-11T09:22:27,379][INFO ][logstash.runner ] Log4j configuration path used is: /u02/logstash_frontend/etc/log4j2.properties
[2022-03-11T09:22:27,398][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"8.1.0", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.13+8 on 11.0.13+8 +jit [linux-x86_64]"}
[2022-03-11T09:22:27,404][INFO ][logstash.runner ] JVM bootstrap flags:
[2022-03-11T09:22:27,772][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.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby.jar:?]
at u01.logstash.lib.bootstrap.environment.(/u01/logstash/lib/bootstrap/environment.rb:94) ~[?:?]
Other topics mention data directory that should be of user logstash, which it is. So that's not the cause. Also the lib directory should be open to user logstash, also not the cause.
Is there some other way to find out anything on the root cause of this error?
Logstash won't start without a config file, you need at least one configuration with a working input and output, if you do not have a config file logstash has nothing to do and won't start.
But you should have a line that says something like no config file found in the logs, can you check for that?
Hi Leandro, we tried some stuff this afternoon. And we have our logstash user (logstash_frontend) in group logstash. And everyone in group logstash should be able to read/write in the logstash folder (and subfolders like /data). But we made a mistake with the folder permissions.... duh...
Anyway, strange thing is that starting with systemctl no specific log (only "... stopped because of an error".
While starting it from command line we got on error on jvm.options file
/u01/logstash/bin/logstash "--path.settings" "/u02/logstash_frontend/etc"
Using bundled JDK: /u01/logstash/jdk
encountered [2] errors parsing [/u02/logstash_frontend/etc/jvm.options][1]: encountered improperly formatted JVM option in [/u02/logstash_frontend/etc/jvm.options] on line number [20]: [11-13:#-XX:+UseConcMarkSweepGC][2]: encountered improperly formatted JVM option in [/u02/logstash_frontend/etc/jvm.options]
I know this is not the folder permission error, we found that later.
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.