Logstash restart loop


#1

I have setup Filebeats succesfully and noticed logstash is still not processing any logs since it is continuously restarting. This is what I am seeing in the log files on the Raspberry Pi :

[2019-04-17T00:25:17,025][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: ffi/ffi -- java.lang.NullPointerException: null
[2019-04-17T00:27:27,481][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: ffi/ffi -- java.lang.NullPointerException: null

Syslog:
Apr 17 00:25:17 raspberrypi logstash[12723]: [2019-04-17T00:25:17,025][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: ffi/ffi -- java.lang.NullPointerException: null
Apr 17 00:25:17 raspberrypi systemd[1]: logstash.service: main process exited, code=exited, status=1/FAILURE
Apr 17 00:25:17 raspberrypi systemd[1]: Unit logstash.service entered failed state.
Apr 17 00:25:17 raspberrypi systemd[1]: logstash.service holdoff time over, scheduling restart.
Apr 17 00:25:17 raspberrypi systemd[1]: Stopping logstash...
Apr 17 00:25:17 raspberrypi systemd[1]: Starting logstash...
Apr 17 00:25:17 raspberrypi systemd[1]: Started logstash.

Any idea what parameters I can tweak to get this working?