Hello,
We have an old Centos 6 server where java 1.7 is crucial and we can't update it to java 1.8 so we are using alternatives. Configure alternative with logstash is quite difficult ( at least for me)
Problem is that I can start my logstash from CLI:
JAVA_HOME=/usr/java/jdk1.8.0_252-x86_64/jre /usr/share/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }' --path.settings=/etc/logstash
but I can't manage my logstash via initctl
startup configuration looks:
JAVACMD=/usr/java/jdk1.8.0_252-x86_64/jre/bin/java
/etc/init/logstash.conf after /usr/share/logstash/bin/system-install:
exec chroot --userspec logstash:logstash / /usr/share/logstash/bin/logstash >> /var/log/logstash-stdout.log 2>> /var/log/logstash-stderr.log
Error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/logstash/Logstash : Unsupported major.minor version 52.0