[Solved] Arm Server kibana7.4.1 Error: Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties

Problem description: Start kibana7.4.1 on the Arm server and report Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties
[2019-12-02T14:13:48,010][ERROR][ org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: ffi/ffi — java.lang.NullPointerException: null

Cause of the problem: lib/ruby/stdlib/ffi/platform/aarch64-linux/ needs to be missing the platform.conf file, resulting in an abnormal code error

Solution: Copy lib/ruby/stdlib/ffi/platform/aarch64-linux/types.conf and re-command to platform.conf, and repackage jruby-complete-9.2.7.0.jar:

cd /opt/logstash-6.8.4/logstash-core/lib/jars
mkdir -p jruby-complete-9.2.7.0
mv jruby-complete-9.2.7.0.jar jruby-complete-9.2.7.0.jar_bak
cp jruby-complete -9.2.7.0.jar jruby-complete-9.2.7.0/
cd jruby-complete-9.2.7.0/
unzip jruby-complete-9.2.7.0.jar
cd logstash-core/lib/jars/jruby-complete-9.2.7.0/ META-INF/jruby.home/lib/ruby/stdlib/ffi/platform/aarch64-linux
cp types.conf platform.conf
cd /opt/logstash-6.7.4/logstash-core/lib/jars/jruby-complete- 9.2.7.0/
rm jruby-complete-9.2.7.0.jar
zip -r jruby-complete-9.2.7.0.jar *
mv jruby-complete-9.2.7.0.jar ../

Start Logstash:
./logstash -e ‘input { stdin { } } output { stdout {} }’

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *