As @kylekong said, java 10
is not supported. You could install java 8
instead. Using Ubuntu you should do something like this:
sudo -i
apt-get update
apt-get install openjdk-8-jre-headless -y
apt-get install openjdk-8-jdk-headless -y
java -version
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
apt-get install apt-transport-https
apt-get update && apt-get install logstash
exit
Then you can start Logstash
with:
sudo systemctl start logstash
Reference: https://www.elastic.co/guide/en/logstash/current/installing-logstash.html